Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Postgres and Redshift do not allow for MIN/MAX on columns of type BOOLEAN, instead they use the BOOL_AND/BOOL_OR functions, which Calcite already supports.
While CALCITE-6206 is in progress, I plan on just adding this as an override during unparsing for now unless there are objections. After CALCITE-6206 is resolved this could be added to the mapping I described there.
Attachments
Issue Links
- is related to
-
CALCITE-2935 Add BOOL_OR, BOOL_AND, LOGICAL_OR, LOGICAL_AND aggregate functions
- Closed
-
CALCITE-6206 Add library operator mapping for unparsing
- Open
- relates to
-
CALCITE-6414 Snowflake JDBC adapter should generate BOOLOR_AGG, BOOLAND_AGG for MAX, MIN on BOOLEAN values
- Resolved
- links to