Skip to content

Commit

Permalink
update resolver reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
hsheth2 committed Oct 30, 2024
1 parent 1f31280 commit 87ebd64
Showing 1 changed file with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -356,8 +356,9 @@ def _process_invoke_expression(
)
if arg_list is None:
self.reporter.report_warning(
f"{self.table.full_name}-arg-list",
f"Argument list not found for data-access-function {data_access_func}",
title="M-Query Resolver Error",
message="Unable to extract lineage from parsed M-Query expression (missing argument list)",
context=f"{self.table.full_name}: argument list not found for data-access-function {data_access_func}",
)
return None

Expand All @@ -377,8 +378,9 @@ def _process_invoke_expression(
f"Function invocation without argument in expression = {invoke_expression.pretty()}"
)
self.reporter.report_warning(
f"{self.table.full_name}-variable-statement",
"Function invocation without argument",
title="M-Query Resolver Error",
message="Unable to extract lineage from parsed M-Query expression (function invocation without argument)",
context=f"{self.table.full_name}: function invocation without argument",
)
return None

Expand All @@ -403,8 +405,9 @@ def _process_invoke_expression(
f"Either list_expression or type_expression is not found = {invoke_expression.pretty()}"
)
self.reporter.report_warning(
f"{self.table.full_name}-variable-statement",
"Function argument expression is not supported",
title="M-Query Resolver Error",
message="Unable to extract lineage from parsed M-Query expression (function argument expression is not supported)",
context=f"{self.table.full_name}: function argument expression is not supported",
)
return None

Expand Down

0 comments on commit 87ebd64

Please sign in to comment.