Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix test_multi_tier_ast to ignore ordering of output rows #9946

Merged
merged 2 commits into from
Dec 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions integration_tests/src/main/python/ast_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from asserts import assert_cpu_and_gpu_are_equal_collect_with_capture
from conftest import is_not_utc
from data_gen import *
from marks import approximate_float, datagen_overrides
from marks import approximate_float, datagen_overrides, ignore_order
from spark_session import with_cpu_session, is_before_spark_330
import pyspark.sql.functions as f

Expand Down Expand Up @@ -381,8 +381,10 @@ def test_or(data_gen):
f.lit(False) | f.col('b'),
f.col('a') | f.col('b')))

@ignore_order
def test_multi_tier_ast():
assert_gpu_ast(
is_supported=True,
# repartition is here to avoid Spark simplifying the expression
func=lambda spark: spark.range(10).withColumn("x", f.col("id")).repartition(1)\
revans2 marked this conversation as resolved.
Show resolved Hide resolved
.selectExpr("(id < x) == (id < (id + x))"))
.selectExpr("x", "(id < x) == (id < (id + x))"))