Skip to content

Commit b7d87b9

Browse files
committed
fix: test error
1 parent 2be0f79 commit b7d87b9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

datafusion/tests/test_dataframe.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,9 @@ def test_union(ctx):
351351
column("a").sort(ascending=True)
352352
)
353353

354-
assert df_c == df_a.union(df_b).sort(column("a").sort(ascending=True))
354+
df_a_u_b = df_a.union(df_b).sort(column("a").sort(ascending=True))
355+
356+
assert df_c.collect() == df_a_u_b.collect()
355357

356358

357359
def test_union_distinct(ctx):
@@ -375,9 +377,7 @@ def test_union_distinct(ctx):
375377
column("a").sort(ascending=True)
376378
)
377379

378-
assert df_c == df_a.union(df_b, True).sort(
379-
column("a").sort(ascending=True)
380-
)
381-
assert df_c == df_a.union_distinct(df_b).sort(
382-
column("a").sort(ascending=True)
383-
)
380+
df_a_u_b = df_a.union(df_b, True).sort(column("a").sort(ascending=True))
381+
382+
assert df_c.collect() == df_a_u_b.collect()
383+
assert df_c.collect() == df_a_u_b.collect()

0 commit comments

Comments
 (0)