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

[Feature] Paimon Support Spark Field Metadata #5015

Open
2 tasks done
davidyuan1223 opened this issue Feb 5, 2025 · 0 comments · May be fixed by #5300
Open
2 tasks done

[Feature] Paimon Support Spark Field Metadata #5015

davidyuan1223 opened this issue Feb 5, 2025 · 0 comments · May be fixed by #5300
Labels
enhancement New feature or request

Comments

@davidyuan1223
Copy link

davidyuan1223 commented Feb 5, 2025

Search before asking

  • 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

  1. When Create Spark Table, add the metadata configs into schema options field.
  2. When Load Spark Table, add the metadata configs from options into StructType
  3. 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?

  • I'm willing to submit a PR!
@davidyuan1223 davidyuan1223 added the enhancement New feature or request label Feb 5, 2025
@davidyuan1223 davidyuan1223 changed the title [Feature] Support default values for specified fields. [Feature] Paimon Support Spark Field Metadata Mar 17, 2025
@davidyuan1223 davidyuan1223 linked a pull request Mar 17, 2025 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
1 participant