|
@@ -91,9 +91,21 @@ def get_dag_debug_status(dag_uuid: str, node_id: str,db: Session = Depends(get_d
|
|
|
def get_dag_debug_result(dag_uuid: str,node_id: str,out_pin: int ,db: Session = Depends(get_db)):
|
|
|
table_name = get_tmp_table_name(dag_uuid, node_id, str(out_pin), db)
|
|
|
result = hiveDs.get_preview_data(table_name,500)
|
|
|
+ location = ''
|
|
|
+ owner = ''
|
|
|
+ res = hiveDs.get_table_info(table_name)
|
|
|
+ for line_list in res[0]:
|
|
|
+ if line_list[0].find('Location')>=0:
|
|
|
+ location = line_list[1]
|
|
|
+ if line_list[0].find('Owner')>=0:
|
|
|
+ owner = line_list[1]
|
|
|
+ share_status = crud.check_share(db, table_name)
|
|
|
result.update({
|
|
|
'table_name':f'{database_name}.{table_name}',
|
|
|
- 'table_path':f'{hdfs_path}{base_path}{table_name}'
|
|
|
+ 'table_path':f'{hdfs_path}{base_path}{table_name}',
|
|
|
+ 'owner': owner,
|
|
|
+ 'location': location,
|
|
|
+ 'share_status': share_status
|
|
|
})
|
|
|
return result
|
|
|
|