-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Core: Serialize statistics files in TableMetadata #5799
Core: Serialize statistics files in TableMetadata #5799
Conversation
`TableMetadataParser.toJson` now serializes table statistics. This completes the read path from JSON.
0f66f3e
to
fca6101
Compare
@rdblue this should be ready to review |
@@ -225,6 +226,12 @@ public static void toJson(TableMetadata metadata, JsonGenerator generator) throw | |||
} | |||
generator.writeEndArray(); | |||
|
|||
generator.writeArrayFieldStart(STATISTICS); |
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.
Can you also add deserialization? Generally when we update a parser we want to update both.
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.
Deserialization already exists.
statisticsFiles = statisticsFilesFromJson(node.get(STATISTICS)); |
Was added in #5450
The fact serialization was not covered was an omission.
Thanks, @findepi! |
thanks for the merge @rdblue ! |
…he#894) * Core: Serialize statistics files in TableMetadata (apache#5799) (cherry picked from commit d1befd9) * Add DR support of V2 tables without delete date files Co-authored-by: Piotr Findeisen <piotr.findeisen@gmail.com>
TableMetadataParser.toJson
now serializes table statistics. Thiscompletes the read path from JSON.
Extracted from #4741 / #5794