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

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      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

          Activity

            People

            • Assignee:
              kliew Kevin Liew
              Reporter:
              kliew Kevin Liew

              Dates

              • Created:
                Updated:

                Issue deployment