You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by "YasuoStudyJava (via GitHub)" <gi...@apache.org> on 2023/06/06 07:43:37 UTC

[GitHub] [calcite] YasuoStudyJava opened a new pull request, #3246: [CALCITE-5733][core]Simplification should also simplify for array type

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

   *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: commits-unsubscribe@calcite.apache.org

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


[GitHub] [calcite] YasuoStudyJava closed pull request #3246: [CALCITE-5733][core]Simplification should also simplify for array type

Posted by "YasuoStudyJava (via GitHub)" <gi...@apache.org>.
YasuoStudyJava closed pull request #3246: [CALCITE-5733][core]Simplification should also simplify for array type
URL: https://github.com/apache/calcite/pull/3246


-- 
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-unsubscribe@calcite.apache.org

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