Skip to content

Metrics javadoc fixes #767 - #768

Merged
rdblue merged 3 commits into
apache:masterfrom
edgarRd:metrics-docs
Feb 17, 2020
Merged

rdblue merged 3 commits into
apache:masterfrom
edgarRd:metrics-docs

Conversation

@edgarRd

@edgarRd edgarRd commented Feb 3, 2020

Copy link
Copy Markdown
Contributor

Adding javadoc to Metrics following Parquet metrics implementation as proposal.

Assert.assertEquals(2L, (long) metrics.recordCount());
assertCounts(1, 2L, 0L, metrics);
assertCounts(2, 2L, 0L, metrics);
assertCounts(3, 2L, 2L, metrics);

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Note that in this case valueCounts == nullValueCounts and the count is the same as recordCount.

@edgarRd
edgarRd requested a review from rdblue February 3, 2020 03:12
@edgarRd

edgarRd commented Feb 3, 2020

Copy link
Copy Markdown
Contributor Author

PTAL @rdsr @rdblue - Thanks!

public abstract int splitCount(File parquetFile) throws IOException;

@Test
public void testMetricsForRepeatedValues() throws IOException {

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.

What do you want to test with this case?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This test validates the contract that counts include repeated values. In my ORC implementation counts were not included and there was no test validating that contract that now I've documented.

@rdblue

rdblue commented Feb 3, 2020

Copy link
Copy Markdown
Contributor

Mostly looks good, but I don't understand the motivation for the new test case.

@edgarRd

edgarRd commented Feb 17, 2020

Copy link
Copy Markdown
Contributor Author

cc @aokolnychyi

@rdblue
rdblue merged commit e164f63 into apache:master Feb 17, 2020
@rdblue

rdblue commented Feb 17, 2020

Copy link
Copy Markdown
Contributor

Thanks for clarifying what was being tested! I've merged this.

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.

2 participants