Tim Armstrong has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/15963 )

Change subject: IMPALA-6692: Trigger sort node run before hitting memory limit.
......................................................................


Patch Set 9:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/15963/9/be/src/runtime/sorter.cc
File be/src/runtime/sorter.cc:

http://gerrit.cloudera.org:8080/#/c/15963/9/be/src/runtime/sorter.cc@879
PS9, Line 879:     if (cur_batch_index < batch->num_rows()
> I think it is implied by line 872?
Ahh, Sorter::enable_spilling_ is a bit misleading - that actually is whether 
it's in the partial sort mode or not. You have Sorter::enable_spilling_ = true 
for full sorts, even if spilling is disabled at the query level.

Just as an example of what I mean, if you run a sort query that requires 500mb 
with, say, scratch_limit=0, then currently that will succeed so long as it can 
get the memory.

But I think if you set sort_bytes_limit=100mb, then it would try to spill and 
fail, even thought there's memory available.



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I2a0ba7c4bae4f1d300d4d9d7f594f63ced06a240
Gerrit-Change-Number: 15963
Gerrit-PatchSet: 9
Gerrit-Owner: Riza Suminto <[email protected]>
Gerrit-Reviewer: Csaba Ringhofer <[email protected]>
Gerrit-Reviewer: David Rorke <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Riza Suminto <[email protected]>
Gerrit-Reviewer: Tim Armstrong <[email protected]>
Gerrit-Comment-Date: Fri, 05 Jun 2020 00:38:04 +0000
Gerrit-HasComments: Yes

Reply via email to