You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by "siddharthteotia (via GitHub)" <gi...@apache.org> on 2023/04/24 13:48:55 UTC

[GitHub] [pinot] siddharthteotia opened a new issue, #10676: [multistage] NOT IN subquery not working

siddharthteotia opened a new issue, #10676:
URL: https://github.com/apache/pinot/issues/10676

   Creating this to track issue received in user feedback. Yet to take a look
   
   NOT IN subquery not working
   
   Query:
   
   ```
   SET useMultistageEngine=true;
   select DISTINCT(orderID) from foodOrderFact where orderState = 'NEW' and orderID NOT in (select DISTINCT(orderID) from foodOrderFact where orderState != 'NEW');
   ```
   
   ```
   Exception in server:
   Caused by: java.lang.NullPointerException: Cannot find function with Name: IS NOT TRUE
       at org.apache.pinot.shaded.com.google.common.base.Preconditions.checkNotNull(Preconditions.java:787)
       at org.apache.pinot.query.runtime.operator.operands.FunctionOperand.<init>(FunctionOperand.java:50)
       at org.apache.pinot.query.runtime.operator.operands.TransformOperand.toTransformOperand(TransformOperand.java:134)
       at org.apache.pinot.query.runtime.operator.operands.TransformOperand.toTransformOperand(TransformOperand.java:38)
       at org.apache.pinot.query.runtime.operator.FilterOperator.<init>(FilterOperator.java:58)
       at org.apache.pinot.query.runtime.plan.PhysicalPlanVisitor.visitFilter(PhysicalPlanVisitor.java:94)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


[GitHub] [pinot] Jackie-Jiang closed issue #10676: [multistage] NOT IN subquery not working

Posted by "Jackie-Jiang (via GitHub)" <gi...@apache.org>.
Jackie-Jiang closed issue #10676: [multistage] NOT IN subquery not working
URL: https://github.com/apache/pinot/issues/10676


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


[GitHub] [pinot] somandal commented on issue #10676: [multistage] NOT IN subquery not working

Posted by "somandal (via GitHub)" <gi...@apache.org>.
somandal commented on issue #10676:
URL: https://github.com/apache/pinot/issues/10676#issuecomment-1535039763

   The user tried this on the latest master and confirmed that this query works. This issue can be closed. Explain plan shared by user:
   
   ```
   SET useMultistageEngine=true;
   EXPLAIN PLAN FOR select DISTINCT(orderID) from foodOrderFact where orderState = 'NEW' and orderID NOT in (select DISTINCT(orderID) from foodOrderFact where orderState != 'NEW')
   Execution Plan
   LogicalAggregate(group=[{0}])
     LogicalExchange(distribution=[hash[0]])
       LogicalAggregate(group=[{0}])
         LogicalFilter(condition=[IS NOT TRUE($4)])
           LogicalJoin(condition=[=($2, $3)], joinType=[left])
             LogicalExchange(distribution=[hash[2]])
               LogicalProject(orderID=[$16], orderState=[$17], orderID0=[$16])
                 LogicalFilter(condition=[=($17, 'NEW')])
                   LogicalTableScan(table=[[foodOrderFact]])
             LogicalExchange(distribution=[hash[0]])
               LogicalProject(orderID=[$0], $f1=[true])
                 LogicalAggregate(group=[{0}])
                   LogicalExchange(distribution=[hash[0]])
                     LogicalAggregate(group=[{0}])
                       LogicalProject(orderID=[$16], orderState=[$17])
                         LogicalFilter(condition=[<>($17, 'NEW')])
                           LogicalTableScan(table=[[foodOrderFact]])
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org