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

In RelDataTypeSystem, deprecate methods getMaxNumericScale and getMaxNumericPrecision

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.38.0
    • None
    • None

    Description

      In interface RelDataTypeSystem, deprecate getMaxNumericScale() in favor of getMaxScale(SqlTypeName) and getMaxNumericPrecision() in favor of getMaxPRecision(SqlTypeName).

      This will make them consistent with getMinScale(SqlTypeName) and getMinPrecision(SqlTypeName) (both added in CALCITE-6560).

      For each pair of methods (one with SqlTypeName and one without), if we allow people to choose which to override, things will become too complicated. So, in release 1.39 we will make getMaxNumericScale() and getMaxNumericPrecision() methods final (in addition to being deprecated as of release 1.38). People should only override getMaxScale(SqlTypeName) and getMaxPrecision(SqlTypeName).

      This will be a breaking change in 1.39 – projects that have overridden these methods will be broken – but at least we will have given them one release warning.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              julianhyde Julian Hyde
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: