-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Track result sizes of partial aggregate evaluation in HBO #21160
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -294,6 +294,7 @@ public final class SystemSessionProperties | |
| public static final String REWRITE_CONSTANT_ARRAY_CONTAINS_TO_IN_EXPRESSION = "rewrite_constant_array_contains_to_in_expression"; | ||
| public static final String INFER_INEQUALITY_PREDICATES = "infer_inequality_predicates"; | ||
| public static final String ENABLE_HISTORY_BASED_SCALED_WRITER = "enable_history_based_scaled_writer"; | ||
| public static final String USE_PARTIAL_AGGREGATION_HISTORY = "use_partial_aggregation_history"; | ||
|
||
| public static final String REMOVE_REDUNDANT_CAST_TO_VARCHAR_IN_JOIN = "remove_redundant_cast_to_varchar_in_join"; | ||
| public static final String HANDLE_COMPLEX_EQUI_JOINS = "handle_complex_equi_joins"; | ||
|
|
||
|
|
@@ -1772,6 +1773,11 @@ public SystemSessionProperties( | |
| "Enable setting the initial number of tasks for scaled writers with HBO", | ||
| featuresConfig.isUseHBOForScaledWriters(), | ||
| false), | ||
| booleanProperty( | ||
| USE_PARTIAL_AGGREGATION_HISTORY, | ||
| "Use collected partial aggregation statistics from HBO", | ||
| featuresConfig.isUsePartialAggregationHistory(), | ||
| false), | ||
| booleanProperty( | ||
| REMOVE_REDUNDANT_CAST_TO_VARCHAR_IN_JOIN, | ||
| "If both left and right side of join clause are varchar cast from int/bigint, remove the cast here", | ||
|
|
@@ -2961,6 +2967,11 @@ public static boolean useHistoryBasedScaledWriters(Session session) | |
| return session.getSystemProperty(ENABLE_HISTORY_BASED_SCALED_WRITER, Boolean.class); | ||
| } | ||
|
|
||
| public static boolean usePartialAggregationHistory(Session session) | ||
| { | ||
| return session.getSystemProperty(USE_PARTIAL_AGGREGATION_HISTORY, Boolean.class); | ||
| } | ||
|
|
||
| public static boolean isRemoveRedundantCastToVarcharInJoinEnabled(Session session) | ||
| { | ||
| return session.getSystemProperty(REMOVE_REDUNDANT_CAST_TO_VARCHAR_IN_JOIN, Boolean.class); | ||
|
|
||
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.
nit:
@Test?