Csaba Ringhofer has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/24883 )

Change subject: IMPALA-13052: Estimate reservoir sample memory in aggregations
......................................................................


Patch Set 2: Code-Review+1

(2 comments)

Thanks for adding the sophisticated mem estimation! I tried to follow the 
calculation through and it makes sense to me, the test estimates also look 
realistic.

http://gerrit.cloudera.org:8080/#/c/24883/2/fe/src/main/java/org/apache/impala/planner/PlannerContext.java
File fe/src/main/java/org/apache/impala/planner/PlannerContext.java:

http://gerrit.cloudera.org:8080/#/c/24883/2/fe/src/main/java/org/apache/impala/planner/PlannerContext.java@148
PS2, Line 148: getFreePoolBytes
nit: "get" sounds like if this was some config - maybe calculateFreePoolBytes?


http://gerrit.cloudera.org:8080/#/c/24883/2/testdata/workloads/functional-planner/queries/PlannerTest/reservoir-sample-agg.test
File 
testdata/workloads/functional-planner/queries/PlannerTest/reservoir-sample-agg.test:

http://gerrit.cloudera.org:8080/#/c/24883/2/testdata/workloads/functional-planner/queries/PlannerTest/reservoir-sample-agg.test@1
PS2, Line 1: #
Can you add a test for a table with missing stats?



--
To view, visit http://gerrit.cloudera.org:8080/24883
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Id6eec3daf7fea9b027ff0be9c95c6ee5a3cf323d
Gerrit-Change-Number: 24883
Gerrit-PatchSet: 2
Gerrit-Owner: Aleksandr Efimov <[email protected]>
Gerrit-Reviewer: Aleksandr Efimov <[email protected]>
Gerrit-Reviewer: Csaba Ringhofer <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Riza Suminto <[email protected]>
Gerrit-Comment-Date: Thu, 24 Sep 2026 12:01:51 +0000
Gerrit-HasComments: Yes

Reply via email to