[
https://issues.apache.org/jira/browse/BEAM-8508?focusedWorklogId=336950&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-336950
]
ASF GitHub Bot logged work on BEAM-8508:
----------------------------------------
Author: ASF GitHub Bot
Created on: 31/Oct/19 17:46
Start Date: 31/Oct/19 17:46
Worklog Time Spent: 10m
Work Description: apilloud commented on pull request #9943: [BEAM-8508]
[SQL] Standalone filter push down
URL: https://github.com/apache/beam/pull/9943#discussion_r341280735
##########
File path:
sdks/java/extensions/sql/src/main/java/org/apache/beam/sdk/extensions/sql/impl/rule/BeamIOPushDownRule.java
##########
@@ -123,7 +129,12 @@ public void onMatch(RelOptRuleCall call) {
// 1. Calc only does projects and renames.
// And
// 2. Predicate can be completely pushed-down to IO level.
- if (isProjectRenameOnlyProgram(program) &&
tableFilter.getNotSupported().isEmpty()) {
+ // And
+ // 3. And IO supports project push-down OR all fields are projected by a
Calc.
+ if (isProjectRenameOnlyProgram(program)
+ && tableFilter.getNotSupported().isEmpty()
+ && (beamSqlTable.supportsProjects()
+ || calc.getRowType().getFieldCount() ==
calcInputRowType.getFieldCount())) {
Review comment:
I think this needs to verify the order as well as the count.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 336950)
Time Spent: 1h 20m (was: 1h 10m)
> [SQL] Support predicate push-down without project push-down
> -----------------------------------------------------------
>
> Key: BEAM-8508
> URL: https://issues.apache.org/jira/browse/BEAM-8508
> Project: Beam
> Issue Type: Improvement
> Components: dsl-sql
> Reporter: Kirill Kozlov
> Assignee: Kirill Kozlov
> Priority: Major
> Time Spent: 1h 20m
> Remaining Estimate: 0h
>
> In this PR: [https://github.com/apache/beam/pull/9863]
> Support for Predicate push-down is added, but only for IOs that support
> project push-down.
> In order to accomplish that some checks need to be added to not perform
> certain Calc and IO manipulations when only filter push-down is needed.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)