We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug
SQL
CREATE OR REPLACE TEMP TABLE `table_1` AS SELECT * EXCEPT(B) FROM `dataset.table_0` ;
To Reproduce Note here we refer to SQL provided in prior step as stored in a file named test.sql
test.sql
import json from sqllineage.core.metadata.dummy import DummyMetaDataProvider from sqllineage.runner import LineageRunner with open("test.sql") as f: sp = f.read() with open('metadata.json') as file: metadata = json.load(file) provider = DummyMetaDataProvider(metadata) lineage = LineageRunner(sp, dialect="bigquery", metadata_provider=provider, verbose=True) lineage.print_column_lineage()
Metadata.json:
{ "dataset.table_0": [ "A", "B", "C", "D" ] }
Result
<default>.table_1.* except(b) <- dataset.table_0.* except(b)
Expected behavior
<default>.table_1.A <- dataset.table_0.A <default>.table_1.C <- dataset.table_0.C <default>.table_1.D <- dataset.table_0.D
Python version (available via python --version)
python --version
SQLLineage version (available via sqllineage --version):
sqllineage --version
The text was updated successfully, but these errors were encountered:
Bug confirmed. * EXCEPT(B) is parsed as column name, which is clearly wrong. To fix the issue:
* EXCEPT(B)
Sorry, something went wrong.
No branches or pull requests
Describe the bug
SQL
To Reproduce
Note here we refer to SQL provided in prior step as stored in a file named
test.sql
Metadata.json:
Result
Expected behavior
Python version (available via
python --version
)SQLLineage version (available via
sqllineage --version
):The text was updated successfully, but these errors were encountered: