You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@asterixdb.apache.org by AsterixDB Code Review <do...@asterix-gerrit.ics.uci.edu> on 2026/10/06 19:47:11 UTC
[S] Change in asterixdb[master]: [NO ISSUE][COMP] Fix CBO scan cost of a pushed LIMIT
From Rithwik Koul <ri...@couchbase.com>:
Rithwik Koul has uploaded a new patch set (#2). ( https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/22002?usp=email )
Change subject: [NO ISSUE][COMP] Fix CBO scan cost of a pushed LIMIT
......................................................................
[NO ISSUE][COMP] Fix CBO scan cost of a pushed LIMIT
A LIMIT pushed into a data scan stops each partition on its own, so
the cluster reads the limit once per partition rather than once in
total. The scan also has to produce the offset rows, since the LIMIT
itself skips them. The scan was costed for the limit alone, as if it
applied to the whole cluster.
Ext-ref: MB-70486
Generated-by: Claude Opus 5.5 <no...@anthropic.com>
Change-Id: Id437d35c7c3e3f9624076464d196518da823400c
---
M asterixdb/asterix-algebra/src/main/java/org/apache/asterix/optimizer/cost/CostMethods.java
M asterixdb/asterix-algebra/src/main/java/org/apache/asterix/optimizer/rules/PushLimitIntoOrderByRule.java
M asterixdb/asterix-algebra/src/main/java/org/apache/asterix/optimizer/rules/cbo/JoinEnum.java
3 files changed, 11 insertions(+), 10 deletions(-)
git pull ssh://asterix-gerrit.ics.uci.edu:29418/asterixdb refs/changes/02/22002/2
--
To view, visit https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/22002?usp=email
To unsubscribe, or for help writing mail filters, visit https://asterix-gerrit.ics.uci.edu/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Change-Id: Id437d35c7c3e3f9624076464d196518da823400c
Gerrit-Change-Number: 22002
Gerrit-PatchSet: 2
Gerrit-Owner: Rithwik Koul <ri...@couchbase.com>
Gerrit-CC: Jenkins <je...@fulliautomatix.ics.uci.edu>