Hi team, I am working at Dremio corp. We have a customer query that fails to infer some constant expressions. While delving deeper, we find out that the RexUtil’s predicateConstants method works only with EQUALS and IS NULL operators and in our query the expression was having IS NOT DISTINCT FROM operator. I think we can add support for this operator as well. I’ve raised a JIRA ticket regarding the same CALCITE-5336 <https://issues.apache.org/jira/browse/CALCITE-5336>.
Kindly have look at this and please let me know your thoughts. Thanks, Jasmin Trada.