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
PARQUET-352: Add object model property to file footers. #289
Conversation
WriteSupport now has a getName getter method that is added to the footer if it returns a non-null string as writer.model.name. This is intended to help identify files written by object models incorrectly.
*/ | ||
public String getName() { | ||
return null; | ||
} |
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.
we could also add a constructor parameter. (and keep the original default constructor for compatibility)
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.
and mark the old one deprecated
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.
My reasoning is that using the constructor requires updates in a lot more places and it would be easier to overlook cases that need it.
I made a comment about passing this to the constructor instead, but this looks good to me either way. |
Thanks for reviewing, Julien! |
WriteSupport now has a getName getter method that is added to the footer if it returns a non-null string as writer.model.name. This is intended to help identify files written by object models incorrectly. Author: Ryan Blue <blue@apache.org> Closes apache#289 from rdblue/PARQUET-352-add-object-model-property and squashes the following commits: 23f8f67 [Ryan Blue] PARQUET-352: Add object model property to file footers.
WriteSupport now has a getName getter method that is added to the footer if it returns a non-null string as writer.model.name. This is intended to help identify files written by object models incorrectly. Author: Ryan Blue <blue@apache.org> Closes apache#289 from rdblue/PARQUET-352-add-object-model-property and squashes the following commits: 23f8f67 [Ryan Blue] PARQUET-352: Add object model property to file footers.
WriteSupport now has a getName getter method that is added to the footer if it returns a non-null string as writer.model.name. This is intended to help identify files written by object models incorrectly. Author: Ryan Blue <blue@apache.org> Closes apache#289 from rdblue/PARQUET-352-add-object-model-property and squashes the following commits: 23f8f67 [Ryan Blue] PARQUET-352: Add object model property to file footers.
WriteSupport now has a getName getter method that is added to the footer
if it returns a non-null string as writer.model.name. This is intended
to help identify files written by object models incorrectly.