chore(ingest): bump sqllineage and sqlparse (#8481)

This commit is contained in:
Harshal Sheth 2023-07-28 13:10:19 -07:00 committed by GitHub
parent 9718505fc7
commit 89f23d3c36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 6 deletions

View File

@ -126,12 +126,11 @@ sql_common = {
}
sqllineage_lib = {
"sqllineage==1.3.6",
"sqllineage==1.3.8",
# We don't have a direct dependency on sqlparse but it is a dependency of sqllineage.
# As per https://github.com/reata/sqllineage/issues/361
# and https://github.com/reata/sqllineage/pull/360
# sqllineage has compat issues with sqlparse 0.4.4.
"sqlparse==0.4.3",
# There have previously been issues from not pinning sqlparse, so it's best to pin it.
# Related: https://github.com/reata/sqllineage/issues/361 and https://github.com/reata/sqllineage/pull/360
"sqlparse==0.4.4",
}
sqlglot_lib = {

View File

@ -199,7 +199,7 @@ def test_make_usage_workunit():
def test_query_formatting():
test_email = "test_email@test.com"
test_query = "select * from foo where id in (select id from bar);"
formatted_test_query: str = "SELECT *\n FROM foo\n WHERE id in (\n SELECT id\n FROM bar\n );"
formatted_test_query: str = "SELECT *\n FROM foo\n WHERE id IN (\n SELECT id\n FROM bar\n );"
event_time = datetime(2020, 1, 1)
floored_ts = get_time_bucket(event_time, BucketDuration.DAY)