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

PARQUET-352: Add object model property to file footers. #289

Closed

Conversation

rdblue
Copy link
Contributor

@rdblue rdblue commented Nov 21, 2015

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.

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;
}
Copy link
Member

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)

Copy link
Member

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

Copy link
Contributor Author

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.

@julienledem
Copy link
Member

I made a comment about passing this to the constructor instead, but this looks good to me either way.
+1

@asfgit asfgit closed this in dcd1c33 Dec 8, 2015
@rdblue
Copy link
Contributor Author

rdblue commented Dec 8, 2015

Thanks for reviewing, Julien!

piyushnarang pushed a commit to piyushnarang/parquet-mr that referenced this pull request Jun 15, 2016
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.
rdblue added a commit to rdblue/parquet-mr that referenced this pull request Jul 13, 2016
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.
rdblue added a commit to rdblue/parquet-mr that referenced this pull request Jan 6, 2017
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants