Skip to content

Add config/session property to control aggregate Spilling#16578

Closed
pgupta2 wants to merge 1 commit intoprestodb:masterfrom
pgupta2:add_config_for_aggreation_spill
Closed

Add config/session property to control aggregate Spilling#16578
pgupta2 wants to merge 1 commit intoprestodb:masterfrom
pgupta2:add_config_for_aggreation_spill

Conversation

@pgupta2
Copy link
Contributor

@pgupta2 pgupta2 commented Aug 6, 2021

spill_enabled session property enable spills for all operators. Currently, We do
not have any way to control aggregation spills explicitly. This PR adds a config to
control aggregation spills.

Test plan - Added a unit test

== RELEASE NOTES ==

General Changes
* Add a new configuration property `experimental.aggregation-spill-enabled` to control aggregate spills explicitly. This can be overridden by `aggregation_spill_enabled` session property.

`spill_enabled` session property enable spills for all operators. Currently, We do
not have any way to control aggergation spills explicitly. This PR adds a config to
control aggregation spills.
@pgupta2 pgupta2 marked this pull request as draft August 7, 2021 23:13
Copy link
Member

@fgwang7w fgwang7w left a comment

Choose a reason for hiding this comment

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

Thanks for adding this level of spill control. You might want to consider adding a comment that this aggregation spill control supercedes distinctSpill(distinct-aggregation-spill-enabled) and OrderbySpill (order-by-aggregation-spill-enabled).

@@ -1248,6 +1249,7 @@ public PhysicalOperation visitAggregation(AggregationNode node, LocalExecutionPl
node,
source,
spillEnabled,
Copy link
Member

Choose a reason for hiding this comment

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

nit: better to make this varilable as an inline as well to align with other invocation of split parameters

Copy link
Contributor Author

Choose a reason for hiding this comment

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

#16581 adds config/session properties for controlling aggregates/window/orderby spilling.

@pgupta2 pgupta2 closed this Oct 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants