We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Summary
For query select count(*) from system.numbers(100000), ReadDataSourcePlan has Statistics: https://github.com/datafuselabs/datafuse/blob/28c8e3eda9fb8de881635343d3225b3e7be07b4b/common/planners/src/plan_read_datasource.rs#L17-L26
select count(*) from system.numbers(100000)
Statistics
In this case, we can use the read_rows as the final count: https://github.com/datafuselabs/datafuse/blob/28c8e3eda9fb8de881635343d3225b3e7be07b4b/common/planners/src/plan_statistics.rs#L6-L11
read_rows
count
We need a StatisticsConstant optimizer rule, like: https://github.com/apache/arrow-datafusion/pull/620/files
StatisticsConstant
The text was updated successfully, but these errors were encountered:
/assignme
Sorry, something went wrong.
TennyZhuang
Successfully merging a pull request may close this issue.
Summary
For query
select count(*) from system.numbers(100000)
, ReadDataSourcePlan hasStatistics
:https://github.com/datafuselabs/datafuse/blob/28c8e3eda9fb8de881635343d3225b3e7be07b4b/common/planners/src/plan_read_datasource.rs#L17-L26
In this case, we can use the
read_rows
as the finalcount
:https://github.com/datafuselabs/datafuse/blob/28c8e3eda9fb8de881635343d3225b3e7be07b4b/common/planners/src/plan_statistics.rs#L6-L11
We need a
StatisticsConstant
optimizer rule, like:https://github.com/apache/arrow-datafusion/pull/620/files
The text was updated successfully, but these errors were encountered: