forked from datahub-project/datahub
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(ingest): streamline CLL generation (datahub-project#11645)
- Loading branch information
Showing
7 changed files
with
118 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
...ata-ingestion/tests/unit/sql_parsing/goldens/test_bigquery_subquery_column_inference.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ | ||
"query_type": "SELECT", | ||
"query_type_props": {}, | ||
"query_fingerprint": "4094ebd230c1d47c7e6879b05ab927e550923b1986eb58c5f3814396cf401d18", | ||
"in_tables": [ | ||
"urn:li:dataset:(urn:li:dataPlatform:bigquery,invent_dw.UserDetail,PROD)" | ||
], | ||
"out_tables": [], | ||
"column_lineage": [ | ||
{ | ||
"downstream": { | ||
"table": null, | ||
"column": "user_id", | ||
"column_type": null, | ||
"native_column_type": null | ||
}, | ||
"upstreams": [ | ||
{ | ||
"table": "urn:li:dataset:(urn:li:dataPlatform:bigquery,invent_dw.UserDetail,PROD)", | ||
"column": "user_id" | ||
} | ||
] | ||
}, | ||
{ | ||
"downstream": { | ||
"table": null, | ||
"column": "source", | ||
"column_type": null, | ||
"native_column_type": null | ||
}, | ||
"upstreams": [ | ||
{ | ||
"table": "urn:li:dataset:(urn:li:dataPlatform:bigquery,invent_dw.UserDetail,PROD)", | ||
"column": "source" | ||
} | ||
] | ||
}, | ||
{ | ||
"downstream": { | ||
"table": null, | ||
"column": "user_source", | ||
"column_type": null, | ||
"native_column_type": null | ||
}, | ||
"upstreams": [ | ||
{ | ||
"table": "urn:li:dataset:(urn:li:dataPlatform:bigquery,invent_dw.UserDetail,PROD)", | ||
"column": "user_source" | ||
} | ||
] | ||
} | ||
], | ||
"debug_info": { | ||
"confidence": 0.2, | ||
"generalized_statement": "SELECT user_id, source, user_source FROM (SELECT *, ROW_NUMBER() OVER (PARTITION BY user_id ORDER BY __partition_day DESC) AS rank_ FROM invent_dw.UserDetail) AS source_user WHERE rank_ = ?" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters