Commit 48736a0 1 parent d88e6c9 commit 48736a0 Copy full SHA for 48736a0
File tree 1 file changed +4
-1
lines changed
metadata-ingestion/src/datahub/sql_parsing
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ def _get_last_line(query: str) -> str:
40
40
class ToolMetaExtractorReport (Report ):
41
41
num_queries_meta_extracted : Dict [str , int ] = field (default_factory = int_top_k_dict )
42
42
failures : List [str ] = field (default_factory = list )
43
+ looker_user_mapping_missing : Optional [bool ] = None
43
44
44
45
45
46
class ToolMetaExtractor :
@@ -108,7 +109,9 @@ def extract_looker_user_mapping_from_graph(
108
109
PlatformResource .search_by_filters (query = query , graph_client = graph )
109
110
)
110
111
111
- if len (platform_resources ) > 1 :
112
+ if len (platform_resources ) == 0 :
113
+ report .looker_user_mapping_missing = True
114
+ elif len (platform_resources ) > 1 :
112
115
report .failures .append (
113
116
"Looker user metadata extraction failed. Found more than one looker user id mappings."
114
117
)
You can’t perform that action at this time.
0 commit comments