Uh oh!
There was an error while loading. Please reload this page.
[SPARK-12236][SQL] JDBC filter tests all pass if filters are not really pushed down - #10221
[SPARK-12236][SQL] JDBC filter tests all pass if filters are not really pushed down#10221HyukjinKwon wants to merge 1 commit into
Conversation
SparkQA
commented
Dec 9, 2015
Test build #47418 has finished for PR 10221 at commit
|
HyukjinKwon
commented
Dec 11, 2015
@liancheng Would you like to look through this? it is related with the filter tests. |
holdenk
commented
Dec 14, 2015
This looks reasonable to me, although I'm a bit confused by the addition of some similar code in #9687 - it seems just having a single shared strip filter utility function makes sense (is that the eventual plan)? |
HyukjinKwon
commented
Dec 14, 2015
Oh yes. That is the eventual plan. I will share that function. I opended some PRs before other PRs are closed. So, I ended up with adding the same function to another PR. |
HyukjinKwon
commented
Dec 14, 2015
@holdenk Actually, would you merge this PR if it looks good? |
holdenk
commented
Dec 15, 2015
Can't merge it, but we could ask @marmbrus or @liancheng to take a look if they have the bandwidth. |
marmbrus
commented
Dec 15, 2015
Why not just implement |
HyukjinKwon
commented
Dec 15, 2015
@marmbrus I saw that Jira ticket (for I found this problem while testing about that Jira ticket (for It looks adding I would like to add that later (maybe right after correcting all filter tests) with a task with subtasks for Parquet, ORC and JDBC datasources if it is acceptable. Otherwise, if it sounds unreasonable, then I will try to add |
HyukjinKwon
commented
Dec 16, 2015
Actually, we might still need such function even after adding |
marmbrus
commented
Dec 16, 2015
Fair enough, I guess we can probably commit this as is and do the improvement in another PR. |
marmbrus
commented
Dec 16, 2015
Merging to master. |
HyukjinKwon
commented
Dec 16, 2015
Thanks! |
https://issues.apache.org/jira/browse/SPARK-12236
Currently JDBC filters are not tested properly. All the tests pass even if the filters are not pushed down due to Spark-side filtering.
In this PR,
Firstly, I corrected the tests to properly check the pushed down filters by removing Spark-side filtering.
Also,
!=was being tested which is actually not pushed down. So I removed them.Lastly, I moved the
stripSparkFilter()function toSQLTestUtilsas this functions would be shared for all tests for pushed down filters. This function would be also shared with ORC datasource as the filters for that are also not being tested properly.