Skip to content

Conversation

@HyukjinKwon
Copy link
Member

What changes were proposed in this pull request?

This PR proposes to disable ANSI mode in pyspark.sql.tests.connect.test_connect_functions temporarily.

This PR is sort of a followup of #38946 and #39071

Why are the changes needed?

There are failures in test_connect_functions with ANSI mode on (https://github.com/apache/spark/actions/runs/3709431687/jobs/6288067223). I tried to fix but they are tricky to fix because Spark Connect does not respect the runtime configuration at the server side.

It is also tricky to fix the test to pass in both ANSI mode on and off. Therefore, it disables temporarily to make other tests pass. Note that PySpark tests stop in the middle if one fails.

Does this PR introduce any user-facing change?

No, test-only.

How was this patch tested?

Manually verified that:

SPARK_ANSI_SQL_MODE=true ./python/run-tests --modules pyspark-connect -p 1

passes fine.

@HyukjinKwon
Copy link
Member Author

cc @xinrong-meng @zhengruifeng FYI

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, LGTM. Merged to master.

dongjoon-hyun pushed a commit that referenced this pull request Dec 31, 2022
…connect.test_connect_column

### What changes were proposed in this pull request?

This PR proposes to disable ANSI mode in `pyspark.sql.tests.connect.test_connect_column` temporarily.

This is a sort of a followup of #39241 and #39276.

### Why are the changes needed?

To recover the broken ASNI build https://github.com/apache/spark/actions/runs/3791006074/jobs/6446116146. This is similar with #39092.

### Does this PR introduce _any_ user-facing change?

No, test-only.

### How was this patch tested?

Manually tested via:

```bash
SPARK_ANSI_SQL_MODE=true ./python/run-tests --testnames 'pyspark.sql.tests.connect.test_connect_column'
```

Closes #39317 from HyukjinKwon/SPARK-41731-followup.

Authored-by: Hyukjin Kwon <gurwls223@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
@HyukjinKwon HyukjinKwon deleted the SPARK-41548 branch January 15, 2024 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants