Uh oh!
There was an error while loading. Please reload this page.
[SPARK-11677][SQL][FOLLOW-UP] Add tests for checking the ORC filter creation against pushed down filters. - #10341
[SPARK-11677][SQL][FOLLOW-UP] Add tests for checking the ORC filter creation against pushed down filters.#10341HyukjinKwon wants to merge 9 commits into
Conversation
HyukjinKwon
commented
Dec 17, 2015
As I talked with @liancheng, this PR is not covering But as I see Hive's latest codes, this is accessible. So, I think I can add some tests about |
SparkQA
commented
Dec 17, 2015
Test build #47878 has finished for PR 10341 at commit
|
liancheng
commented
Dec 19, 2015
Hey @HyukjinKwon, actually I hit the same issue for testing Please refer to this file for details. |
HyukjinKwon
commented
Dec 19, 2015
@liancheng Thanks! I will try to apply that way. |
HyukjinKwon
commented
Dec 21, 2015
In this commit, I used string expression I am not too sure if generalising them with string template is appropriate though. I can't come up with a better idea for now. |
liancheng
commented
Dec 21, 2015
Oh, actually I didn't mean that you should use string comparison to test all ORC filters. It's perfectly OK to use The only reason that I suggested using string comparison here is that ORC doesn't expose necessary interfaces similar to |
SparkQA
commented
Dec 21, 2015
Test build #48104 has finished for PR 10341 at commit
|
HyukjinKwon
commented
Dec 21, 2015
Ah. I will correct them soon! |
HyukjinKwon
commented
Dec 22, 2015
In the commits above, I added tests for logical operators separately. Although it does not check all the combinations across types with logical operators, I think this would be okay because the basic comparison operators are being tested across types. Could we add some tests for logical operators across types later if they are necessary in a way? I do not want to make the tests hacky clunky. |
SparkQA
commented
Dec 22, 2015
Test build #48162 has finished for PR 10341 at commit
|
SparkQA
commented
Dec 22, 2015
Test build #48164 has finished for PR 10341 at commit
|
SparkQA
commented
Dec 22, 2015
Test build #48165 has finished for PR 10341 at commit
|
liancheng
commented
Dec 22, 2015
Thanks for working on this! Merging to master. |
liancheng
commented
Dec 22, 2015
Hit network issue and couldn't fetch from GitHub... Finally got it merged. |
https://issues.apache.org/jira/browse/SPARK-11677
Although it checks correctly the filters by the number of results if ORC filter-push-down is enabled, the filters themselves are not being tested.
So, this PR includes the test similarly with
ParquetFilterSuite.Since the results are checked by
OrcQuerySuite, thisOrcFilterSuiteonly checks if the appropriate filters are created.One thing different with
ParquetFilterSuitehere is, it does not check the results because that is checked inOrcQuerySuite.