Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-6220

Rewrite MIN/MAX(BOOLEAN) as BOOL_AND/BOOL_OR for Postgres, Redshift

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.37.0
    • 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

          Activity

            People

              tanclary Tanner Clary
              tanclary Tanner Clary
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: