paimon
paimon copied to clipboard
[Feature] Paimon Support Spark Field Metadata
Search before asking
- [x] I searched in the issues and found nothing similar.
Motivation
After Spark3.3+, which support field with meatdata, currently paimon schema don't support the field metadata, So we need to support this. And, after Spark3.4, Spark SQL Support FIELD DEFAULT VALUE, which is add field default value into field metadata. So If we wanna support SPARK DEFAULT VALUE, we need support metadata first.
Solution
- When Create Spark Table, add the metadata configs into schema options field.
- When Load Spark Table, add the metadata configs from options into StructType
- Whe Alter Spark Table, should support AddColumn(contains defaultValue), UpdateColumnDefaultValue, DeleteColumn(delete metadata in options)
Anything else?
No response
Are you willing to submit a PR?
- [x] I'm willing to submit a PR!