Skip to content

Commit

Permalink
fix(tests): make parquet select deterministic with order by (apache#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
villebro committed Sep 6, 2021
1 parent d5a655c commit 661e499
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/integration_tests/csv_upload_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand All @@ -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)]

0 comments on commit 661e499

Please sign in to comment.