Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-3733

Calcite BOOLEAN returns precision of 1 but does not allow specifying a precision when creating an instance

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      This causes issues when creating extended columns of type BOOLEAN.

      We create extended columns with the precision returned by RelDataType.getPrecision. We later use this precision in CalciteUtils.pDataTypeToRelDataType as RelDataTypeFactory.createSqlType with the precision specified as 1. This causes Calcite to throw an assertion.

      Attachments

        1. PHOENIX-3733.patch
          2 kB
          Kevin Liew

        Activity

          People

            kliew Kevin Liew
            kliew Kevin Liew
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: