[
https://issues.apache.org/jira/browse/CALCITE-5733?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Zhen Chen resolved CALCITE-5733.
--------------------------------
Fix Version/s: 1.42.0
Assignee: Zhen Chen
Resolution: Fixed
Fixed in
[{{92cfb30}}|https://github.com/apache/calcite/commit/92cfb301750d9bf55387e5c6b3650c07407225fb]
Thanks for review [~mbudiu]
> Simplify "a = ARRAY[1,2] AND a = ARRAY[2,3]" to "false"
> -------------------------------------------------------
>
> Key: CALCITE-5733
> URL: https://issues.apache.org/jira/browse/CALCITE-5733
> Project: Calcite
> Issue Type: Improvement
> Components: core
> Affects Versions: 1.26.0, 1.34.0
> Reporter: Xin Chen
> Assignee: Zhen Chen
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.42.0
>
> Attachments: image-2023-06-06-16-24-50-989.png, screenshot-1.png,
> screenshot-2.png, screenshot-3.png, screenshot-4.png
>
>
> 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". Obviously,
> was there no consideration given to the field type being an array?I found
> this issue while debugging the Flink SQL task.
> Link to
> https://issues.apache.org/jira/browse/FLINK-32188.
> https://issues.apache.org/jira/browse/CALCITE-4364
--
This message was sent by Atlassian Jira
(v8.20.10#820010)