feat(ingest): bump acryl-sqlglot (#8882)

This commit is contained in:
Harshal Sheth 2023-09-21 14:28:51 -07:00 committed by GitHub
parent 5f06dbf542
commit 2a0200b047
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 42 additions and 1 deletions

View File

@ -138,7 +138,7 @@ sqllineage_lib = {
sqlglot_lib = { sqlglot_lib = {
# Using an Acryl fork of sqlglot. # Using an Acryl fork of sqlglot.
# https://github.com/tobymao/sqlglot/compare/main...hsheth2:sqlglot:hsheth?expand=1 # https://github.com/tobymao/sqlglot/compare/main...hsheth2:sqlglot:hsheth?expand=1
"acryl-sqlglot==18.0.2.dev15", "acryl-sqlglot==18.5.2.dev45",
} }
aws_common = { aws_common = {

View File

@ -0,0 +1,31 @@
{
"query_type": "SELECT",
"in_tables": [
"urn:li:dataset:(urn:li:dataPlatform:hive,t1,PROD)",
"urn:li:dataset:(urn:li:dataPlatform:hive,t2,PROD)"
],
"out_tables": [],
"column_lineage": [
{
"downstream": {
"table": null,
"column": "a"
},
"upstreams": []
},
{
"downstream": {
"table": null,
"column": "b"
},
"upstreams": []
},
{
"downstream": {
"table": null,
"column": "c"
},
"upstreams": []
}
]
}

View File

@ -208,6 +208,16 @@ FROM snowflake_sample_data.tpch_sf100.orders
) )
def test_select_ambiguous_column_no_schema():
assert_sql_result(
"""
select A, B, C from t1 inner join t2 on t1.id = t2.id
""",
dialect="hive",
expected_file=RESOURCE_DIR / "test_select_ambiguous_column_no_schema.json",
)
def test_merge_from_union(): def test_merge_from_union():
# TODO: We don't support merge statements yet, but the union should still get handled. # TODO: We don't support merge statements yet, but the union should still get handled.