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

RexBuilder reverses precision and scale of DECIMAL literal

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4.0-incubating
    • Component/s: None
    • Labels:
      None

      Description

      RexBuilder L850

       typeFactory.createSqlType(
                    SqlTypeName.DECIMAL, scale, precision);
      

      However, the createSqlType is accepting

      RelDataType createSqlType(
            SqlTypeName typeName,
            int precision,
            int scale);
      

      Need to swap the precision and scale

        Attachments

        Issue Links

          Activity

            People

            • Assignee:
              julianhyde Julian Hyde
              Reporter:
              pxiong Pengcheng Xiong

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment