|
@@ -163,10 +163,10 @@ def get_lake_table_schema(db_name: str, table_name: str, db: Session = Depends(g
|
|
def get_preview_lake_table(db_name: str, table_name: str, db: Session = Depends(get_db)):
|
|
def get_preview_lake_table(db_name: str, table_name: str, db: Session = Depends(get_db)):
|
|
return crud.get_preview_lake_table(db, db_name, table_name)
|
|
return crud.get_preview_lake_table(db, db_name, table_name)
|
|
|
|
|
|
-@router.get("/table_location")
|
|
|
|
|
|
+@router.get("/table_location", dependencies=[Depends(verify_all)])
|
|
@web_try()
|
|
@web_try()
|
|
@sxtimeit
|
|
@sxtimeit
|
|
-def get_table_location(db_name: str, table_name: str, ds_id: Optional[int] = None, token_data: schemas.TokenData = Depends(verify_special), db: Session = Depends(get_db)):
|
|
|
|
|
|
+def get_table_location(db_name: str, table_name: str, ds_id: Optional[int] = None, db: Session = Depends(get_db)):
|
|
res = None
|
|
res = None
|
|
if ds_id is None:
|
|
if ds_id is None:
|
|
res = crud.get_table_info(db, db_name, table_name)
|
|
res = crud.get_table_info(db, db_name, table_name)
|