Skip to content

[SPARK-16516][SQL] Support for pushing down filters for decimal and timestamp types in ORC#14172

Closed
HyukjinKwon wants to merge 1 commit intoapache:masterfrom
HyukjinKwon:SPARK-16516
Closed

[SPARK-16516][SQL] Support for pushing down filters for decimal and timestamp types in ORC#14172
HyukjinKwon wants to merge 1 commit intoapache:masterfrom
HyukjinKwon:SPARK-16516

Conversation

@HyukjinKwon
Copy link
Member

@HyukjinKwon HyukjinKwon commented Jul 13, 2016

What changes were proposed in this pull request?

It seems ORC supports all the types in (PredicateLeaf.Type) which includes timestamp type and decimal type.

In more details, the types listed in SearchArgumentImpl.boxLiteral() can be used as a filter value.

FYI, inital case caluse for supported types was introduced in 65d71bd and this was not changed overtime. At that time, Hive version was, 0.13 which supports only some types for filter-push down (See SearchArgumentImpl.java#L945-L965 at 0.13).

However, the version was upgraded into 1.2.x and now it supports more types (See SearchArgumentImpl.java#L1068-L1093 at 1.2.0)

How was this patch tested?

Unit tests in OrcFilterSuite and OrcQuerySuite

@HyukjinKwon
Copy link
Member Author

HyukjinKwon commented Jul 13, 2016

@liancheng I thought both were omitted in the original codes because BigDecimal and Timestamp are not supported for Hive 1.2.x as well but it seems they are and work fine. Could you please take a look?

@SparkQA
Copy link

SparkQA commented Jul 13, 2016

Test build #62214 has finished for PR 14172 at commit ade0ad2.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@HyukjinKwon
Copy link
Member Author

(cc @liancheng)

@HyukjinKwon
Copy link
Member Author

Could you take a look please @yhuai and @liancheng ?

@HyukjinKwon
Copy link
Member Author

Gentle ping @yhuai and @liancheng

@liancheng
Copy link
Contributor

LGTM, merging to master. Thanks!

@HyukjinKwon
Copy link
Member Author

Thank you !!!

@asfgit asfgit closed this in 2cac3b2 Sep 27, 2016
@HyukjinKwon HyukjinKwon deleted the SPARK-16516 branch January 2, 2018 03:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants