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

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