You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I run get_query_tables with this string as an argument, I think only TABLE1 should be in the value it returns, and MTYPE shouldn't be there.
SELECT*FROM TABLE1
WHERE
SNAPSHOTDATE = (SELECTMAX(SNAPSHOTDATE) FROM TABLE1)
AND (MTYPE NOT IN ('Item1', 'Item2'))
I would assume, that this function run without assertion error.
fromsql_metadata.compatimportget_query_tablesdeftest_get_query_tables():
sql="""SELECT *FROM TABLE1WHERE SNAPSHOTDATE = (SELECT MAX(SNAPSHOTDATE) FROM TABLE1) AND (MTYPE NOT IN ('Item1', 'Item2')) """assert'MTYPE'notinget_query_tables(sql)
I've installed sql_metadata==2.10.0 with pip and tested it with Python 3.11.0rc1.
The text was updated successfully, but these errors were encountered:
If I run
get_query_tables
with this string as an argument, I think only TABLE1 should be in the value it returns, and MTYPE shouldn't be there.I would assume, that this function run without assertion error.
I've installed
sql_metadata==2.10.0
with pip and tested it withPython 3.11.0rc1
.The text was updated successfully, but these errors were encountered: