Uh oh!
There was an error while loading. Please reload this page.
[SPARK-25699][SQL] Partially push down conjunctive predicated in ORC - #22684
[SPARK-25699][SQL] Partially push down conjunctive predicated in ORC#22684gengliangwang wants to merge 5 commits into
Conversation
gengliangwang
commented
Oct 10, 2018
| )).get.toString | ||
| } | ||
| // Safely remove unsupported `StringContains` predicate and push down `LessThan` |
There was a problem hiding this comment.
There is another predicate pushed down. We shall mention it too?
SparkQA
commented
Oct 10, 2018
Test build #97187 has finished for PR 22684 at commit
|
SparkQA
commented
Oct 10, 2018
Test build #97199 has finished for PR 22684 at commit
|
| val leftBuilderOption = createBuilder(dataTypeMap, left, | ||
| newBuilder, canPartialPushDownConjuncts) | ||
| val rightBuilderOption = | ||
| createBuilder(dataTypeMap, right, newBuilder, canPartialPushDownConjuncts) |
There was a problem hiding this comment.
Nit, can you make the format the same as leftBuilderOption? Also, add another empty line before (leftBuilderOption, rightBuilderOption). Thanks.
| _ <- buildSearchArgument(dataTypeMap, child, newBuilder) | ||
| negate <- buildSearchArgument(dataTypeMap, child, builder.startNot()) | ||
| _ <- createBuilder(dataTypeMap, child, newBuilder, canPartialPushDownConjuncts = false) | ||
| negate <- createBuilder(dataTypeMap, child, builder.startNot(), false) |
There was a problem hiding this comment.
Nit, can you explicitly call canPartialPushDownConjuncts = false?
There was a problem hiding this comment.
Then it has to be two lines..I am OK with that too.
| newBuilder, canPartialPushDownConjuncts) | ||
| val rightBuilderOption = | ||
| createBuilder(dataTypeMap, right, newBuilder, canPartialPushDownConjuncts) | ||
| (leftBuilderOption, rightBuilderOption) match { |
| _ <- buildSearchArgument(dataTypeMap, child, newBuilder) | ||
| negate <- buildSearchArgument(dataTypeMap, child, builder.startNot()) | ||
| _ <- createBuilder(dataTypeMap, child, newBuilder, canPartialPushDownConjuncts = false) | ||
| negate <- createBuilder(dataTypeMap, child, builder.startNot(), false) |
dbtsai
commented
Oct 10, 2018
LGTM. Just some styling feedback. Thanks. |
dbtsai
commented
Oct 10, 2018
Merged into master. Thanks. |
SparkQA
commented
Oct 10, 2018
Test build #97209 has finished for PR 22684 at commit
|
## What changes were proposed in this pull request? Inspired by apache#22574 . We can partially push down top level conjunctive predicates to Orc. This PR improves Orc predicate push down in both SQL and Hive module. ## How was this patch tested? New unit test. Closesapache#22684 from gengliangwang/pushOrcFilters. Authored-by: Gengliang Wang <gengliang.wang@databricks.com> Signed-off-by: DB Tsai <d_tsai@apple.com>
What changes were proposed in this pull request?
Inspired by #22574 .
We can partially push down top level conjunctive predicates to Orc.
This PR improves Orc predicate push down in both SQL and Hive module.
How was this patch tested?
New unit test.