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

Incorrect Literal Casting of DecimalType in OrcFilters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.3.0, 2.4.0
    • 2.3.4, 2.4.1, 3.0.0
    • SQL

    Description

      DecimalType Literal should not be casted to Long.

      eg. For `df.filter("x < 3.14")`, assuming df (x in DecimalType) reads from a ORC table and uses the native ORC reader with predicate push down enabled, we will push down the `x < 3.14` predicate to the ORC reader via a SearchArgument.

      OrcFilters will construct the SearchArgument, but not handle the DecimalType correctly.

      The previous impl will construct `x < 3` from `x < 3.14`.

      Attachments

        Issue Links

          Activity

            People

              sadhen Darcy Shen
              sadhen Darcy Shen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: