Skip to content

[SPARK-52219][SQL] Schema level collation support for tables #50937

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ilicmarkodb
Copy link
Contributor

@ilicmarkodb ilicmarkodb commented May 19, 2025

What changes were proposed in this pull request?

Added support for setting and altering a default collation at the schema level.
Tables that do not specify their own collation will now automatically inherit the schema-level default.

CREATE SCHEMA schema1 DEFAULT COLLATION UTF8_LCASE; CREATE TABLE t1 (c1 STRING);
The default collation for table t1 will be UTF8_LCASE. and c1 data type will be STRING COLLATE UTF8_LCASE.

Following PRs will add support for Views, UDFs.

Why are the changes needed?

New feature.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Tests added to DefaultCollationTestSuite.scala.

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

No.

@github-actions github-actions bot added the SQL label May 19, 2025
@ilicmarkodb ilicmarkodb force-pushed the schema_level_collation branch 14 times, most recently from e3c2bac to c6387e2 Compare May 19, 2025 23:12
@ilicmarkodb ilicmarkodb force-pushed the schema_level_collation branch 7 times, most recently from 257abc9 to 5c5f6e5 Compare May 20, 2025 14:16
@ilicmarkodb ilicmarkodb force-pushed the schema_level_collation branch from 5c5f6e5 to 3b2b537 Compare May 20, 2025 14:18
@ilicmarkodb
Copy link
Contributor Author

@cloud-fan can you please review?

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.

2 participants