Skip to content

Commit

Permalink
fix(ingest): lookml - extract column correctly (#6093)
Browse files Browse the repository at this point in the history
  • Loading branch information
shirshanka authored Sep 30, 2022
1 parent 446b10d commit 3d8d8c6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ def _get_fields(
if type_cls == ViewFieldType.DIMENSION and extract_column_level_lineage:
if field_dict.get("sql") is not None:
upstream_field_match = re.match(
r"^.*\${TABLE}\.(.*)$", field_dict["sql"]
r"^.*\${TABLE}\.(\w+)", field_dict["sql"]
)
if upstream_field_match:
matched_field = upstream_field_match.group(1)
Expand Down

0 comments on commit 3d8d8c6

Please sign in to comment.