Open rymarm opened 1 month ago
@jnturton I'm unsure whether the fix is correct because calcite is a black box to me, but I think I found the correct place where the change should be made.
I'll be glad if you advise me on how to cover the case with unit tests.
@jnturton I'm unsure whether the fix is correct because calcite is a black box to me, but I think I found the correct place where the change should be made.
I'll be glad if you advise me on how to cover the case with unit tests.
You're not the only one to whom Calcite is a black box... :-)
I saw the failing tests. I need to find another solution to solve the issue...
DRILL-8512: 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 callingDrillOptiq.toDrill
withnull
for the input, see code change) orRexBuilder
along withRelDataType
.Testing
Tested with the query the issue was reproduced: