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

   Hi!
   
   Using version 1.0.0, we have a query like this:
   
   ````
   select CASE WHEN m IN ('A','B') THEN 'C' ELSE m END from
   (select v1.v,  v2.m from sztable v1 inner join sztable v2 on 
v1.szid=v2.szid) d
   where v in  ('A', 'B', 'C', 'D')
    limit 10
   ````
   
   Executing this **multistage** query gives:
   
   ````
   Error Code: 200
   
   QueryExecutionError:
   Unable to execute query plan at stage 2 on server 172.21.0.5@{43169,45365}: 
ERROR: java.util.concurrent.ExecutionException: 
java.lang.IllegalStateException: Cannot find function with name: IN
        at 
java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:395)
        at 
java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2022)
        at 
org.apache.pinot.query.service.SubmissionService.awaitFinish(SubmissionService.java:49)
        at 
org.apache.pinot.query.service.server.QueryServer.submit(QueryServer.java:121)
   ...
   Caused by: java.lang.IllegalStateException: Cannot find function with name: 
IN
        at 
org.apache.pinot.shaded.com.google.common.base.Preconditions.checkState(Preconditions.java:601)
        at 
org.apache.pinot.query.runtime.operator.operands.FunctionOperand.<init>(FunctionOperand.java:51)
        at 
org.apache.pinot.query.runtime.operator.operands.TransformOperandFactory.getTransformOperand(TransformOperandFactory.java:77)
        at 
org.apache.pinot.query.runtime.operator.operands.TransformOperandFactory.getTransformOperand(TransformOperandFactory.java:34)
   
org.apache.pinot.query.service.dispatch.QueryDispatcher.submit(QueryDispatcher.java:149)
   
org.apache.pinot.query.service.dispatch.QueryDispatcher.submitAndReduce(QueryDispatcher.java:93)
   
org.apache.pinot.broker.requesthandler.MultiStageBrokerRequestHandler.handleRequest(MultiStageBrokerRequestHandler.java:179)
   
org.apache.pinot.broker.requesthandler.BaseBrokerRequestHandler.handleRequest(BaseBrokerRequestHandler.java:263)
   ````
   
   if I don't use the IN expression in CASE in the projection part of the 
SELECT, the query runs well. (`SELECT m FROM ...`)
   
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to