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/04/15 00:50:47 UTC

[S] Change in asterixdb[trinity]: unnest with limit

From Ali Alsuliman <al...@gmail.com>:

Ali Alsuliman has uploaded this change for review. ( https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/21132?usp=email )


Change subject: unnest with limit
......................................................................

unnest with limit

Change-Id: Ibb3d38799359d329d5c77cde3c121aeb72fbd2a3
---
M asterixdb/asterix-algebra/src/main/java/org/apache/asterix/optimizer/rules/PushLimitIntoPrimarySearchRule.java
1 file changed, 0 insertions(+), 10 deletions(-)



  git pull ssh://asterix-gerrit.ics.uci.edu:29418/asterixdb refs/changes/32/21132/1

diff --git a/asterixdb/asterix-algebra/src/main/java/org/apache/asterix/optimizer/rules/PushLimitIntoPrimarySearchRule.java b/asterixdb/asterix-algebra/src/main/java/org/apache/asterix/optimizer/rules/PushLimitIntoPrimarySearchRule.java
index 3e6e575..e0f068c 100644
--- a/asterixdb/asterix-algebra/src/main/java/org/apache/asterix/optimizer/rules/PushLimitIntoPrimarySearchRule.java
+++ b/asterixdb/asterix-algebra/src/main/java/org/apache/asterix/optimizer/rules/PushLimitIntoPrimarySearchRule.java
@@ -142,16 +142,6 @@
             case UNNEST_MAP:
                 UnnestMapOperator unnestMap = (UnnestMapOperator) child;
                 if (isUnnestMapPushable(unnestMap, selectedVariables)) {
-                    // set only the limit if the unnest-map is propagating the input vars.
-                    // when the unnest-map op is propagating the input vars, currently the index-search runtime fails to
-                    // evaluate the select-condition because at the time the select-condition is evaluated, the tuple
-                    // has only the index-search vars while the select-condition expects the tuple to have both the
-                    // input vars + index-search vars. the index-search runtime needs to be fixed to construct the
-                    // complete tuple vars first, then evaluate the select-condition.
-                    if (unnestMap.propagatesInput()) {
-                        unnestMap.setOutputLimit(outputLimit);
-                        return true;
-                    }
                     unnestMap.setSelectCondition(selectConditionRef);
                     unnestMap.setOutputLimit(outputLimit);
                     changed = true;

-- 
To view, visit https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/21132?usp=email
To unsubscribe, or for help writing mail filters, visit https://asterix-gerrit.ics.uci.edu/settings?usp=email

Gerrit-MessageType: newchange
Gerrit-Project: asterixdb
Gerrit-Branch: trinity
Gerrit-Change-Id: Ibb3d38799359d329d5c77cde3c121aeb72fbd2a3
Gerrit-Change-Number: 21132
Gerrit-PatchSet: 1
Gerrit-Owner: Ali Alsuliman <al...@gmail.com>