mirror of https://github.com/apache/superset.git
fix(tests): make parquet select deterministic with order by (#16570)
This commit is contained in:
parent
02798a3517
commit
070fdbeebc
|
@ -420,7 +420,7 @@ def test_import_parquet(setup_csv_upload, create_columnar_files):
|
||||||
data = (
|
data = (
|
||||||
get_upload_db()
|
get_upload_db()
|
||||||
.get_sqla_engine()
|
.get_sqla_engine()
|
||||||
.execute(f"SELECT * from {PARQUET_UPLOAD_TABLE}")
|
.execute(f"SELECT * from {PARQUET_UPLOAD_TABLE} ORDER BY b")
|
||||||
.fetchall()
|
.fetchall()
|
||||||
)
|
)
|
||||||
assert data == [("john", 1), ("paul", 2)]
|
assert data == [("john", 1), ("paul", 2)]
|
||||||
|
@ -435,7 +435,7 @@ def test_import_parquet(setup_csv_upload, create_columnar_files):
|
||||||
data = (
|
data = (
|
||||||
get_upload_db()
|
get_upload_db()
|
||||||
.get_sqla_engine()
|
.get_sqla_engine()
|
||||||
.execute(f"SELECT * from {PARQUET_UPLOAD_TABLE}")
|
.execute(f"SELECT * from {PARQUET_UPLOAD_TABLE} ORDER BY b")
|
||||||
.fetchall()
|
.fetchall()
|
||||||
)
|
)
|
||||||
assert data == [("john", 1), ("paul", 2), ("max", 3), ("bob", 4)]
|
assert data == [("john", 1), ("paul", 2), ("max", 3), ("bob", 4)]
|
||||||
|
|
Loading…
Reference in New Issue