This is an automated email from the ASF dual-hosted git repository. ruifengz pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/master by this push: new bc0ba7dccdd5 [SPARK-41762][PYTHON][CONNECT][TESTS] Enable column name comparsion in `test_column_arithmetic_ops` bc0ba7dccdd5 is described below commit bc0ba7dccdd596319ecbff3ffe4f59938f80e3a0 Author: Ruifeng Zheng <ruife...@apache.org> AuthorDate: Thu Mar 14 08:13:16 2024 +0800 [SPARK-41762][PYTHON][CONNECT][TESTS] Enable column name comparsion in `test_column_arithmetic_ops` ### What changes were proposed in this pull request? Enable column name comparsion in `test_column_arithmetic_ops` ### Why are the changes needed? the default column name should had been already fixed ### Does this PR introduce _any_ user-facing change? no, test-only ### How was this patch tested? ci ### Was this patch authored or co-authored using generative AI tooling? no Closes #45493 from zhengruifeng/test_column_negative_name. Authored-by: Ruifeng Zheng <ruife...@apache.org> Signed-off-by: Ruifeng Zheng <ruife...@apache.org> --- python/pyspark/sql/tests/connect/test_connect_column.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/python/pyspark/sql/tests/connect/test_connect_column.py b/python/pyspark/sql/tests/connect/test_connect_column.py index be351e133841..5a1cccc6e172 100644 --- a/python/pyspark/sql/tests/connect/test_connect_column.py +++ b/python/pyspark/sql/tests/connect/test_connect_column.py @@ -813,12 +813,9 @@ class SparkConnectColumnTests(SparkConnectSQLTestCase): ).toPandas(), ) - # TODO(SPARK-41762): make __neg__ return the correct column name - # [left]: Index(['negative(a)'], dtype='object') - # [right]: Index(['(- a)'], dtype='object') self.assert_eq( - cdf.select((-cdf.a).alias("x")).toPandas(), - sdf.select((-sdf.a).alias("x")).toPandas(), + cdf.select((-cdf.a)).toPandas(), + sdf.select((-sdf.a)).toPandas(), ) self.assert_eq( --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org For additional commands, e-mail: commits-h...@spark.apache.org