You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Dongjoon Hyun (JIRA)" <ji...@apache.org> on 2019/03/20 19:33:00 UTC
[jira] [Resolved] (SPARK-27160) Incorrect Literal Casting of
DecimalType in OrcFilters
[ https://issues.apache.org/jira/browse/SPARK-27160?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dongjoon Hyun resolved SPARK-27160.
-----------------------------------
Resolution: Fixed
Assignee: Darcy Shen
Fix Version/s: 3.0.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.4.0
> Reporter: Darcy Shen
> Assignee: Darcy Shen
> Priority: Major
> Labels: correctness
> Fix For: 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
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org