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

RexBuilder reverses precision and scale of DECIMAL literal

    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

            People

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

              Dates

                Created:
                Updated:
                Resolved: