spark icon indicating copy to clipboard operation
spark copied to clipboard

[SPARK-48739][SQL] Disable writing collated data to file formats that don't support them in non managed tables

Open stefankandic opened this issue 8 months ago • 2 comments

What changes were proposed in this pull request?

Disable writing collated types to data sources that don't support them. However, spark managed tables should still work as the schema is in HMS and not in the file itself.

Why are the changes needed?

Right now, when users write a collated type directly to json, text, orc.. they will not see that collation when reading back.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Added new UTs

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

No.

stefankandic avatar Jun 27 '24 15:06 stefankandic