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

Unified use `DataType.catalogString` as `targetType` of `QueryExecutionErrors#castingCauseOverflowError`

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.3.0
    • 3.3.0
    • SQL
    • None

    Description

      SPARK-33541 introduces `QueryExecutionErrors#castingCauseOverflowError` and 

      there are 2 ways to input parameter `targetType` in spark:

      • Use `DataType.catalogString` as `targetType`, such as use in `Cast.scala` and `IntervalUtils.scala`
      • Use custom literal such as `short`,`int` and `long` in `Decimal.scala` and `numberics.scala`

       

      And we can use `DataType.catalogString` uniformly

       

       

      Attachments

        Activity

          People

            LuciferYang Yang Jie
            LuciferYang Yang Jie
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: