You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2019/11/05 00:11:00 UTC

[jira] [Work logged] (BEAM-8508) [SQL] Support predicate push-down without project push-down

     [ https://issues.apache.org/jira/browse/BEAM-8508?focusedWorklogId=338421&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-338421 ]

ASF GitHub Bot logged work on BEAM-8508:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 05/Nov/19 00:10
            Start Date: 05/Nov/19 00:10
    Worklog Time Spent: 10m 
      Work Description: 11moon11 commented on pull request #9943: [BEAM-8508] [SQL] Standalone filter push down
URL: https://github.com/apache/beam/pull/9943#discussion_r342331288
 
 

 ##########
 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:
   Still working on checking the order, do not merge yet.
 
----------------------------------------------------------------
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:
users@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 338421)
    Time Spent: 2h  (was: 1h 50m)

> [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: 2h
>  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)