richard-misiak-az opened a new issue, #14010:
URL: https://github.com/apache/pinot/issues/14010

   Pinot 1.2.0
   
   
   The following query
   ```
   SELECT *
   FROM
     (SELECT
             CASE
                 WHEN m.userId = 'abc123' THEN 'Test1'
                 ELSE 'Test2'
             END as segment
      FROM example m)
   WHERE segment in ('Test1', 'Test2')
   ```
   
   returns the error
   ```
   Query execution error on: 
Server_xxx-pinot-server-0.xxx-pinot-server-headless.xxx.svc.cluster.local_8098 
java.lang.RuntimeException: Caught exception while running CombinePlanNode.}
       
org.apache.pinot.query.service.dispatch.QueryDispatcher.runReducer(QueryDispatcher.java:306)
       
org.apache.pinot.query.service.dispatch.QueryDispatcher.submitAndReduce(QueryDispatcher.java:96)
       
org.apache.pinot.broker.requesthandler.MultiStageBrokerRequestHandler.handleRequest(MultiStageBrokerRequestHandler.java:219)
       
org.apache.pinot.broker.requesthandler.BaseBrokerRequestHandler.handleRequest(BaseBrokerRequestHandler.java:133)
   ```
   
   The same error occurs for the CTE form
   
   ```
   WITH data AS (
   SELECT
             CASE
                 WHEN m.userId = 'abc123' THEN 'Test1'
                 ELSE 'Test2'
             END as segment
      FROM example m
   )
   SELECT * FROM data WHERE segment in ('Test1', 'Test2')
   ```
   
   Some other where clause results
   - `WHERE segment in ('foo')` - error
   - `WHERE segment in ('Test1')` - no error
   - `WHERE segment = 'Test1'` - no error
   - `WHERE segment = 'Test1' or segment = 'Test2'` - error
   


-- 
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-unsubscr...@pinot.apache.org.apache.org

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


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

Reply via email to