-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[Hive] Cache TableSchema into Configuration to avoid loading read scheme file in PaimonSerDe #2946
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
Conversation
5207f0a to
a160915
Compare
|
|
||
| private static Optional<TableSchema> getExistingSchema( | ||
| @VisibleForTesting | ||
| static Optional<TableSchema> getTableSchemaFromCache(Properties properties) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not just cache HiveSchema?
|
|
||
| private static Optional<TableSchema> getExistingSchema( | ||
| @VisibleForTesting | ||
| static Optional<TableSchema> getTableSchemaFromCache(Properties properties) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getSchemaFromProperties
JingsongLi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
…eme file in PaimonSerDe (apache#2946)
Purpose
The Map Task will fetch the tableschema of paimon. we cache the schema json to configuration to reduce the access of FileSystem
Linked issue: close #xxx
Tests
API and Format
Documentation