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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.4.0-incubating
    • None
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            julianhyde Julian Hyde
            pxiong Pengcheng Xiong
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment