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

Minor: Clarify documentation on PruningStatistics::row_counts and PruningStatistics::null_counts and make test match #10004

Merged
merged 1 commit into from
Apr 9, 2024

Conversation

alamb
Copy link
Contributor

@alamb alamb commented Apr 8, 2024

Which issue does this PR close?

N/A

Rationale for this change

As @waynexia and @Ted-Jiang noted in #9989 / https://github.com/apache/arrow-datafusion/pull/9989/files#r1555386926 the documentation for https://docs.rs/datafusion/latest/datafusion/physical_optimizer/pruning/trait.PruningStatistics.html#tymethod.row_counts says a UInt64Array should be returned but the tests return a Int64Array

What changes are included in this PR?

Improve documentation and update tests to do what the docs say should be done

Are these changes tested?

Existing tests

Are there any user-facing changes?

No

@github-actions github-actions bot added the core Core DataFusion crate label Apr 8, 2024
@alamb alamb changed the title Minor: Clarify documentation on PruningStatistics and make test match Minor: Clarify documentation on PruningStatistics::row_counts and PruningStatistics::null_counts and make test match Apr 8, 2024
@alamb
Copy link
Contributor Author

alamb commented Apr 8, 2024

FYI @appletreeisyellow

@@ -1753,13 +1758,13 @@ mod tests {
self
}

/// Add null counts for the specified columm.
/// Add null counts for the specified column.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

drive by typo fixup

Copy link
Member

@Ted-Jiang Ted-Jiang left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Copy link
Member

@waynexia waynexia left a comment

Choose a reason for hiding this comment

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

👍 LGTM

@Ted-Jiang Ted-Jiang merged commit eb05741 into apache:main Apr 9, 2024
25 checks passed
@alamb alamb deleted the alamb/cleanup_pruning branch April 9, 2024 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Core DataFusion crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants