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

[SPARK-45827][SQL][FOLLOWUP] Fix for collation #45463

Closed
wants to merge 1 commit into from

Conversation

cashmand
Copy link
Contributor

What changes were proposed in this pull request?

#45409 created a default allow-list of types for data sources. The intent was to only prevent creation of the two types that had already been prevented elsewhere in code, but the match expression matched StringType, which is an object representing the default collation, instead of the StringType class, which represents any collation. This PR fixes the issue.

Why are the changes needed?

Without it, the previous PR would be a breaking change for data sources that write StringType with a non-default collation.

Does this PR introduce any user-facing change?

It reverts the previous unintentional user-facing change.

How was this patch tested?

Unit test.

Was this patch authored or co-authored using generative AI tooling?

No.

@github-actions github-actions bot added the SQL label Mar 11, 2024
@dongjoon-hyun dongjoon-hyun changed the title [SPARK-45827] Fix for collation [SPARK-45827][SQL][FOLLOWUP] Fix for collation Mar 11, 2024
@dongjoon-hyun
Copy link
Member

Thank you, @cashmand and all. Merged to master.

jpcorreia99 pushed a commit to jpcorreia99/spark that referenced this pull request Mar 12, 2024
### What changes were proposed in this pull request?

apache#45409 created a default allow-list of types for data sources. The intent was to only prevent creation of the two types that had already been prevented elsewhere in code, but the match expression matched `StringType`, which is an object representing the default collation, instead of the `StringType` class, which represents any collation. This PR fixes the issue.

### Why are the changes needed?

Without it, the previous PR would be a breaking change for data sources that write StringType with a non-default collation.

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

It reverts the previous unintentional user-facing change.

### How was this patch tested?

Unit test.

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes apache#45463 from cashmand/SPARK-45827-followup.

Authored-by: cashmand <david.cashman@databricks.com>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
sweisdb pushed a commit to sweisdb/spark that referenced this pull request Apr 1, 2024
### What changes were proposed in this pull request?

apache#45409 created a default allow-list of types for data sources. The intent was to only prevent creation of the two types that had already been prevented elsewhere in code, but the match expression matched `StringType`, which is an object representing the default collation, instead of the `StringType` class, which represents any collation. This PR fixes the issue.

### Why are the changes needed?

Without it, the previous PR would be a breaking change for data sources that write StringType with a non-default collation.

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

It reverts the previous unintentional user-facing change.

### How was this patch tested?

Unit test.

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes apache#45463 from cashmand/SPARK-45827-followup.

Authored-by: cashmand <david.cashman@databricks.com>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
4 participants