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

Use Parquet statistics for count(*) #618

Closed
Dandandan opened this issue Jun 24, 2021 · 0 comments · Fixed by #620
Closed

Use Parquet statistics for count(*) #618

Dandandan opened this issue Jun 24, 2021 · 0 comments · Fixed by #620
Labels
enhancement New feature or request performance Make DataFusion faster

Comments

@Dandandan
Copy link
Contributor

Dandandan commented Jun 24, 2021

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
Currently, we need to read some column in order to compute the number of records of the table correctly. For sources like Parquet however, we can use the table statistics instead.

Describe the solution you'd like
Create an optimization rule that uses the statistics and replaced the count expression with the statistics based size of the table (sum of row counts).

Describe alternatives you've considered

Additional context

@Dandandan Dandandan added enhancement New feature or request performance Make DataFusion faster labels Jun 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request performance Make DataFusion faster
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant