Infer decimals that have precision values larger than the scale

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 2.1.2, 2.2.3
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Spark has the following check:

       if (scale > precision) {
          throw new AnalysisException(
            s"Decimal scale ($scale) cannot be greater than precision ($precision).")
        }
      

      In these cases set the precision to the same value as the scale.

              Assignee:
              Ross Lawley
              Reporter:
              Ross Lawley
              None
              Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: