fix(tests): make parquet select deterministic with order by (#16570)

This commit is contained in:
Ville Brofeldt 2021-09-02 21:16:33 +03:00 committed by GitHub
parent 02798a3517
commit 070fdbeebc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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)]