You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Yicong Huang (Jira)" <ji...@apache.org> on 2026/02/24 23:06:00 UTC
[jira] [Updated] (SPARK-55666) test_join_ambiguous_cols is flaky due to non-deterministic row order
[ https://issues.apache.org/jira/browse/SPARK-55666?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yicong Huang updated SPARK-55666:
---------------------------------
Summary: test_join_ambiguous_cols is flaky due to non-deterministic row order (was: [PYTHON][TEST] test_join_ambiguous_cols is flaky due to non-deterministic row order)
> test_join_ambiguous_cols is flaky due to non-deterministic row order
> --------------------------------------------------------------------
>
> Key: SPARK-55666
> URL: https://issues.apache.org/jira/browse/SPARK-55666
> Project: Spark
> Issue Type: Bug
> Components: PySpark
> Affects Versions: 4.2.0
> Reporter: Yicong Huang
> Priority: Major
>
> The test {{test_join_ambiguous_cols}} in {{python/pyspark/sql/tests/connect/test_connect_basic.py}} uses {{assertEqual(cdf.collect(), sdf.collect())}} to compare join results without sorting, which can fail non-deterministically because join does not guarantee row order.
> Affected assertions (lines 324, 330, 340, 346, 352): all use {{assertEqual(x.collect(), y.collect())}} directly.
> Fix: replace with {{assertEqual(sorted(x.collect()), sorted(y.collect()))}} for all 5 assertions.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org