[ https://issues.apache.org/jira/browse/SPARK-27160?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Darcy Shen updated SPARK-27160: ------------------------------- 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`. > 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 > Priority: Blocker > Labels: correctness > Fix For: 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 (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org