From 442a5cbb6ad558d802086ef20d4fc053fc2d28b9 Mon Sep 17 00:00:00 2001 From: Ville Brofeldt Date: Thu, 2 Sep 2021 19:58:51 +0300 Subject: [PATCH] fix(tests): make parquet select deterministic with order by --- tests/integration_tests/csv_upload_tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration_tests/csv_upload_tests.py b/tests/integration_tests/csv_upload_tests.py index 23ebc27d3ed2c..5c73e7716a1b4 100644 --- a/tests/integration_tests/csv_upload_tests.py +++ b/tests/integration_tests/csv_upload_tests.py @@ -420,7 +420,7 @@ def test_import_parquet(setup_csv_upload, create_columnar_files): data = ( get_upload_db() .get_sqla_engine() - .execute(f"SELECT * from {PARQUET_UPLOAD_TABLE}") + .execute(f"SELECT * from {PARQUET_UPLOAD_TABLE} ORDER BY b") .fetchall() ) assert data == [("john", 1), ("paul", 2)] @@ -435,7 +435,7 @@ def test_import_parquet(setup_csv_upload, create_columnar_files): data = ( get_upload_db() .get_sqla_engine() - .execute(f"SELECT * from {PARQUET_UPLOAD_TABLE}") + .execute(f"SELECT * from {PARQUET_UPLOAD_TABLE} ORDER BY b") .fetchall() ) assert data == [("john", 1), ("paul", 2), ("max", 3), ("bob", 4)]