Supports pushing down part of the filters when all filters cannot be pushed down#16412
Supports pushing down part of the filters when all filters cannot be pushed down#16412highker merged 1 commit intoprestodb:masterfrom wypb:improve-filter-pushdown
Conversation
|
" Supports pushing down part of the filters when all filters cannot be pushed down in jdbc connector." -> "Support pushing down part of the filters when not all the filters can be push down in JDBC connectors." |
|
Hi @sachdevs, can you help me to review this mr? |
There was a problem hiding this comment.
Please static import
| List<String> sqlBodies = JdbcFilterToSqlTranslator.mergeSqlBodies(translatedExpressions); | |
| List<ConstantExpression> variableBindings = JdbcFilterToSqlTranslator.mergeVariableBindings(translatedExpressions); | |
| List<String> sqlBodies = mergeSqlBodies(translatedExpressions); | |
| List<ConstantExpression> variableBindings = mergeVariableBindings(translatedExpressions); |
|
Please reword commit message, perhaps:
|
There was a problem hiding this comment.
one param per line and leave the first line empty
func(
var1,
var2,
...)
{There was a problem hiding this comment.
move this above expressionOptimizer.optimize
There was a problem hiding this comment.
pushable do not have to co-exist; we only use pushable.isEmpty; that holds true for translatedExpressions.isEmpty
There was a problem hiding this comment.
call this remainingExpressions to pair with translatedExpressions
There was a problem hiding this comment.
same use 3L instead of Long.valueOf(3)
Done. |
|
Hi @highker thank you for your reply, I will modify the code according to the above review comments. |
|
HI @highker I have made changes according to your comments, can you help me review the code again? |
highker
left a comment
There was a problem hiding this comment.
could squash the two commits into one?
Done. |
JDBC filter pushdown always needs to preserve the original filter for correctness. This is to prevent regressions like prestodb#16412 where filters are partially pushed down and there is no guard on Presto side.
JDBC filter pushdown always needs to preserve the original filter for correctness. This is to prevent regressions like #16412 where filters are partially pushed down and there is no guard on Presto side.
The corresponding issue is #16408