Skip to content

Conversation

@mihailom-db
Copy link
Contributor

What changes were proposed in this pull request?

Fix of accent sensitive and case sensitive column results.

Why are the changes needed?

When initial PR was introduced, ICU collation listing ended up with different order of generating columns so results were wrong.

Does this PR introduce any user-facing change?

No, as spark 4.0 was not released yet.

How was this patch tested?

Existing test in CollationSuite.scala, which was wrong in the first place.

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

No.

@github-actions github-actions bot added the SQL label Sep 18, 2024
@mihailom-db
Copy link
Contributor Author

@panbingkun for reference, this mistake slipped in

@HyukjinKwon HyukjinKwon changed the title [FOLLOW-UP][SPARK-49611][SQL] Fix wrong results of collations() TVF [SPARK-49611][SQL][FOLLOW-UP] Fix wrong results of collations() TVF Sep 18, 2024
COLLATION_PAD_ATTRIBUTE,
caseSensitivity == CaseSensitivity.CS,
accentSensitivity == AccentSensitivity.AS);
accentSensitivity == AccentSensitivity.AS,
Copy link
Contributor

Choose a reason for hiding this comment

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

Oh, OMG, I wrote it upside down.
Sorry, thank you very much for fixing it!

@MaxGekk
Copy link
Member

MaxGekk commented Sep 19, 2024

+1, LGTM. Merging to master.
Thank you, @mihailom-db and @panbingkun @dbatomic for review.

@MaxGekk MaxGekk closed this in 3bdf146 Sep 19, 2024
attilapiros pushed a commit to attilapiros/spark that referenced this pull request Oct 4, 2024
### What changes were proposed in this pull request?
Fix of accent sensitive and case sensitive column results.

### Why are the changes needed?
When initial PR was introduced, ICU collation listing ended up with different order of generating columns so results were wrong.

### Does this PR introduce _any_ user-facing change?
No, as spark 4.0 was not released yet.

### How was this patch tested?
Existing test in CollationSuite.scala, which was wrong in the first place.

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

Closes apache#48152 from mihailom-db/tvf-collations-followup.

Authored-by: Mihailo Milosevic <[email protected]>
Signed-off-by: Max Gekk <[email protected]>
himadripal pushed a commit to himadripal/spark that referenced this pull request Oct 19, 2024
### What changes were proposed in this pull request?
Fix of accent sensitive and case sensitive column results.

### Why are the changes needed?
When initial PR was introduced, ICU collation listing ended up with different order of generating columns so results were wrong.

### Does this PR introduce _any_ user-facing change?
No, as spark 4.0 was not released yet.

### How was this patch tested?
Existing test in CollationSuite.scala, which was wrong in the first place.

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

Closes apache#48152 from mihailom-db/tvf-collations-followup.

Authored-by: Mihailo Milosevic <[email protected]>
Signed-off-by: Max Gekk <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants