Skip to content

Commit

Permalink
Sort test result (#1081)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-yixie authored Oct 9, 2023
1 parent eceeb36 commit ff2a386
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/integ/scala/test_complex_dataframe_suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,12 @@ def test_combination_of_multiple_operators_with_filters(session):

assert df1.filter(col("a") < 6).join(df2, ["a"], "left_anti").collect() == []

df = df1.filter(col("a") < 6).join(df2, "a").union(df2.filter(col("a") > 5))
# don't sort
df = (
df1.filter(col("a") < 6)
.join(df2, "a")
.union(df2.filter(col("a") > 5))
.sort("a")
)
assert df.collect() == [Row(i, f"test{i}") for i in range(1, 11)]


Expand Down

0 comments on commit ff2a386

Please sign in to comment.