YasuoStudyJava opened a new pull request, #3247:
URL: https://github.com/apache/calcite/pull/3247

   *Simplification seem to not take into account that the specified field is of 
array type. In other words,it can simplify "a = 1 AND a = 2" to "false",but can 
not simplify “a = ARRAY[1,2] AND a = ARRAY[2,3]” to "false". This change can 
fix it.*
   *Linked to https://issues.apache.org/jira/browse/FLINK-32188, when 
submitting an SQL task with Flink to test a customized data source connector, I 
specified to query an array-type field of a temporary table with a fixed-value 
array. For example, "select * from image-source where URL=ARRAY ['/flink. jpg', 
'/flink_1. jpg'] AND URL=ARRAY ['/f. jpg', '/f_1. jpg']" can obtain two 
predicate conditions, this is illogical. Generally speaking, simplifying this 
SQL condition should not result in any predicates. Changes related to 
“RexSimplify.java” can fix it.*


-- 
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]

Reply via email to