Skip to content

Conversation

@HyukjinKwon
Copy link
Member

What changes were proposed in this pull request?

This PR is another followup of #39034 that, instead, make the tests to pass with/without ANSI mode.

Why are the changes needed?

Spark Connect uses isolated Spark session so setting the configuration in PySpark side does not take an effect. Therefore, the test still fails, see https://github.com/apache/spark/actions/runs/3681383627/jobs/6228030132.

We should make the tests pass with/without ANSI mode for now.

Does this PR introduce any user-facing change?

No, test-only

How was this patch tested?

Manually tested via:

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

@HyukjinKwon
Copy link
Member Author

cc @amaliujia @zhengruifeng

@HyukjinKwon HyukjinKwon changed the title [SPARK-41412][CONNECT][TESTS] Exclude binary to make the tests to pass with/without ANSI mode [SPARK-41412][CONNECT][TESTS][FOLLOW-UP] Exclude binary to make the tests to pass with/without ANSI mode Dec 13, 2022
@HyukjinKwon HyukjinKwon changed the title [SPARK-41412][CONNECT][TESTS][FOLLOW-UP] Exclude binary to make the tests to pass with/without ANSI mode [SPARK-41412][CONNECT][TESTS][FOLLOW-UP] Exclude binary casting to make the tests to pass with/without ANSI mode Dec 13, 2022
Copy link
Contributor

@amaliujia amaliujia left a comment

Choose a reason for hiding this comment

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

LGTM

@HyukjinKwon
Copy link
Member Author

Merged to master.

@zhengruifeng
Copy link
Contributor

LGTM + 1

HyukjinKwon added a commit that referenced this pull request Dec 14, 2022
….sql.tests.connect.test_connect_column

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

This PR is a followup of #39047 which import `BinaryType` that's removed in #39050. This was a logical conflict.

### Why are the changes needed?

To recover the build.

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

No, test-only.

### How was this patch tested?

Manually verified by running `./dev/lint-python`.

Closes #39055 from HyukjinKwon/SPARK-41506-followup.

Authored-by: Hyukjin Kwon <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
beliefer pushed a commit to beliefer/spark that referenced this pull request Dec 18, 2022
…ke the tests to pass with/without ANSI mode

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

This PR is another followup of apache#39034 that, instead, make the tests to pass with/without ANSI mode.

### Why are the changes needed?

Spark Connect uses isolated Spark session so setting the configuration in PySpark side does not take an effect. Therefore, the test still fails, see https://github.com/apache/spark/actions/runs/3681383627/jobs/6228030132.

We should make the tests pass with/without ANSI mode for now.

### 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 apache#39050 from HyukjinKwon/SPARK-41412.

Authored-by: Hyukjin Kwon <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
beliefer pushed a commit to beliefer/spark that referenced this pull request Dec 18, 2022
….sql.tests.connect.test_connect_column

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

This PR is a followup of apache#39047 which import `BinaryType` that's removed in apache#39050. This was a logical conflict.

### Why are the changes needed?

To recover the build.

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

No, test-only.

### How was this patch tested?

Manually verified by running `./dev/lint-python`.

Closes apache#39055 from HyukjinKwon/SPARK-41506-followup.

Authored-by: Hyukjin Kwon <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
@HyukjinKwon HyukjinKwon deleted the SPARK-41412 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.

3 participants