spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dongjoon Hyun (Jira)" <j...@apache.org>
Subject [jira] [Updated] (SPARK-27160) Incorrect Literal Casting of DecimalType in OrcFilters
Date Mon, 02 Mar 2020 20:42:00 GMT

     [ https://issues.apache.org/jira/browse/SPARK-27160?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Dongjoon Hyun updated SPARK-27160:
----------------------------------
    Affects Version/s: 2.3.0

> Incorrect Literal Casting of DecimalType in OrcFilters
> ------------------------------------------------------
>
>                 Key: SPARK-27160
>                 URL: https://issues.apache.org/jira/browse/SPARK-27160
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.3.0, 2.4.0
>            Reporter: Darcy Shen
>            Assignee: Darcy Shen
>            Priority: Major
>              Labels: correctness
>             Fix For: 2.3.4, 2.4.1, 3.0.0
>
>
> 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`.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message