rymarm opened a new pull request, #2944:
URL: https://github.com/apache/drill/pull/2944

   # [DRILL-8512](https://issues.apache.org/jira/browse/DRILL-XXXX): 
ReduceAndSimplifyFilterRule fails with NullPointerException
   
   ## Description
   I'm not sure why the following issue wasn't before, but it's clear, why the 
issue appears at all - because we provide neither inputs `RelNode`s(we calling 
`DrillOptiq.toDrill` with `null` for the input, see code change) or 
`RexBuilder` along with `RelDataType`.
   
   ## Documentation
   -
   
   ## Testing
   Tested with the query the issue was reproduced:
   ```sql
   SELECT *
   FROM
   (
   SELECT
   (CASE WHEN (true) THEN 'qwe' ELSE null END) res1
   FROM (VALUES(1)) test_tbl
   ) test
   where res1 IN ('ab','dab','qw','qwe') 
   ```
   


-- 
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: dev-unsubscr...@drill.apache.org

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

Reply via email to