Uploaded image for project: 'Spark Connector'
  1. Spark Connector
  2. SPARK-187

Infer decimals that have precision values larger than the scale

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.1.2, 2.2.3
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      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@mongodb.com Ross Lawley
            Reporter:
            ross@mongodb.com Ross Lawley
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: