This is an automated email from the ASF dual-hosted git repository. mobuchowski pushed a commit to branch fix-parser-test-whitespace in repository https://gitbox.apache.org/repos/asf/airflow.git
commit 947d581014492cf7a8d7a28cfceb4f8e673bbf8b Author: Maciej Obuchowski <[email protected]> AuthorDate: Tue Jul 16 17:29:46 2024 +0200 openlineage: fix failing OL test on main that normalizes sql Signed-off-by: Maciej Obuchowski <[email protected]> --- tests/providers/openlineage/test_sqlparser.py | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/tests/providers/openlineage/test_sqlparser.py b/tests/providers/openlineage/test_sqlparser.py index 22bd067422..30e74eefcb 100644 --- a/tests/providers/openlineage/test_sqlparser.py +++ b/tests/providers/openlineage/test_sqlparser.py @@ -283,12 +283,9 @@ class TestSQLParser: ] sql = """INSERT INTO popular_orders_day_of_week (order_day_of_week) - SELECT EXTRACT(ISODOW FROM order_placed_on) AS order_day_of_week - FROM top_delivery_times - --irrelevant comment - ) - ; - """ + SELECT EXTRACT(ISODOW FROM order_placed_on) AS order_day_of_week + FROM top_delivery_times --irrelevant comment + );""" hook.get_conn.return_value.cursor.return_value.fetchall.side_effect = returned_rows @@ -314,10 +311,9 @@ class TestSQLParser: mock_parse.return_value = mock_sql_meta formatted_sql = """INSERT INTO popular_orders_day_of_week (order_day_of_week) - SELECT EXTRACT(ISODOW FROM order_placed_on) AS order_day_of_week - FROM top_delivery_times - -)""" + SELECT EXTRACT(ISODOW FROM order_placed_on) AS order_day_of_week + FROM top_delivery_times + )""" expected_schema = "PUBLIC" if parser_returns_schema else "ANOTHER_SCHEMA" expected = OperatorLineage( inputs=[
