You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Norman Jordan (Jira)" <ji...@apache.org> on 2024/07/02 16:53:00 UTC
[jira] [Commented] (CALCITE-6454) Implement array comparison operators
[ https://issues.apache.org/jira/browse/CALCITE-6454?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17862504#comment-17862504 ]
Norman Jordan commented on CALCITE-6454:
----------------------------------------
GREATEST and LEAST functions should support arrays once CALCITE-6454 is resolved.
> Implement array comparison operators
> ------------------------------------
>
> Key: CALCITE-6454
> URL: https://issues.apache.org/jira/browse/CALCITE-6454
> Project: Calcite
> Issue Type: Improvement
> Components: core
> Reporter: Norman Jordan
> Priority: Major
>
> The comparison operators <, <=, >, >=, =, <> are not implemented for arrays. Here is an example query:
>
> {code:java}
> SELECT array[2, 2] > array[1, 1]; {code}
> [This page|https://popsql.com/learn-sql/postgresql/how-to-compare-arrays-in-postgresql] describes how the comparisons work in PostgreSQL.
>
> Check if the comparison operators for arrays exist in other DB engines.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)