Skip to content

PARQUET-297: generate Version class using parquet-generator - #213

Closed
kostya-sh wants to merge 4 commits into
apache:masterfrom
kostya-sh:PARQUET-297_2
Closed

kostya-sh wants to merge 4 commits into
apache:masterfrom
kostya-sh:PARQUET-297_2

Conversation

@kostya-sh

Copy link
Copy Markdown

No description provided.

Konstantin Shaposhnikov added 2 commits June 17, 2015 10:04
parquet-generator will be used to generate Version class in parquet-common so it
cannot depend on parquet-common

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see why these changes should be included in the version pull request. Maybe this was an accident?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to break circular dependency between parquet-generator and parquet-common.

This was the only method from parquet-common that was used by parquet-generator, so I've just copied it here and removed dependency on parquet-common (have a look at parquet-generator/pom.xml change).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, that makes sense to me. Sounds good.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah sort of a bummer but not too bad. Can you add a comment to this method:

// duplicated from BytesUtils to avoid a circular dependency between parquet-common and parquet-generator
// TODO: fix the circular dependency by moving the shared bits to a 3rd module (PARQUET-XXXX)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will add a comment about ByteUtils. Not sure it is worth fixing though as the method is one-liner, is not parquet specific and easy to understand.

@rdblue

rdblue commented Jun 17, 2015

Copy link
Copy Markdown
Contributor

Thanks for building this @kostya-sh! It looks great, just a couple of comments.

To maintain compatibility with the old Version class.
@isnotinvain

Copy link
Copy Markdown
Contributor

Overall LGTM, just one minor comment

@isnotinvain

Copy link
Copy Markdown
Contributor

+1

@asfgit asfgit closed this in ad44321 Jun 18, 2015
asfgit pushed a commit that referenced this pull request Jun 19, 2015
Adds tests for #213

How's this look @rdblue @kostya-sh ?

Author: Alex Levenson <alexlevenson@twitter.com>

Closes #218 from isnotinvain/tests-for-pr-213 and squashes the following commits:

8ee996b [Alex Levenson] Fix group indexes off by 1
b239a2a [Alex Levenson] Add license header :p
38fc78d [Alex Levenson] Add test for Version generator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants