-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[feat](Nereids) after partition prune, output rows of scan node only contains rows from selected partitions #36760
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,11 +21,12 @@ | |
|
|
||
| import java.util.HashMap; | ||
| import java.util.Map; | ||
| import java.util.Set; | ||
|
|
||
| public class StatisticsBuilder { | ||
|
|
||
| private double rowCount; | ||
| private int widthInJoinCluster; | ||
| private int widthInJoinCluster = 1; | ||
| private final Map<Expression, ColumnStatistic> expressionToColumnStats; | ||
|
|
||
| public StatisticsBuilder() { | ||
|
|
@@ -60,6 +61,10 @@ public StatisticsBuilder putColumnStatistics(Expression expression, ColumnStatis | |
| return this; | ||
| } | ||
|
|
||
| public Set<Map.Entry<Expression, ColumnStatistic>> getExpressionColumnStatsEntries() { | ||
| return expressionToColumnStats.entrySet(); | ||
|
Comment on lines
+64
to
+65
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Directly returning a map is more general.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We want to guarantee that every entry is add by API StatististicBuilder.put(expr, columnStats). If the map is exposed, the guarantee may be broken. |
||
| } | ||
|
|
||
| public Statistics build() { | ||
| return new Statistics(rowCount, widthInJoinCluster, expressionToColumnStats); | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only for sync mv? if true, rename to
ForSyncMvThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for both