File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -351,7 +351,9 @@ def test_union(ctx):
351
351
column ("a" ).sort (ascending = True )
352
352
)
353
353
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 ()
355
357
356
358
357
359
def test_union_distinct (ctx ):
@@ -375,9 +377,7 @@ def test_union_distinct(ctx):
375
377
column ("a" ).sort (ascending = True )
376
378
)
377
379
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 ()
You can’t perform that action at this time.
0 commit comments