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

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

                Author: ASF GitHub Bot
            Created on: 29/Oct/19 20:43
            Start Date: 29/Oct/19 20:43
    Worklog Time Spent: 10m 
      Work Description: apilloud commented on pull request #9863: [BEAM-8468] 
Predicate push down for in memory table
URL: https://github.com/apache/beam/pull/9863#discussion_r340305870
 
 

 ##########
 File path: 
sdks/java/extensions/sql/src/main/java/org/apache/beam/sdk/extensions/sql/meta/provider/test/TestTableProvider.java
 ##########
 @@ -204,6 +224,15 @@ public POutput buildIOWriter(PCollection<Row> input) {
       return PDone.in(input.getPipeline());
     }
 
+    @Override
+    public BeamSqlTableFilter constructFilter(List<RexNode> filter) {
+      if (options == PushDownOptions.FILTER || options == 
PushDownOptions.BOTH) {
+        return new TestTableFilter(filter);
+      } else {
 
 Review comment:
   nit: the `else` is unnecessary here.
 
----------------------------------------------------------------
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:
us...@infra.apache.org


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

    Worklog Id:     (was: 335741)
    Time Spent: 1h 50m  (was: 1h 40m)

> Add predicate/filter push-down capability to IO APIs
> ----------------------------------------------------
>
>                 Key: BEAM-8468
>                 URL: https://issues.apache.org/jira/browse/BEAM-8468
>             Project: Beam
>          Issue Type: New Feature
>          Components: dsl-sql
>            Reporter: Kirill Kozlov
>            Assignee: Kirill Kozlov
>            Priority: Major
>          Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> * InMemoryTable should implement a following methods:
> {code:java}
> public PCollection<Row> buildIOReader(
>     PBegin begin, BeamSqlTableFilter filters, List<String> fieldNames);
> public BeamSqlTableFilter constructFilter(List<RexNode> filter);
> {code}
>  * Update a push-down rule to support predicate/filter push-down.
>  * Create a class
> {code:java}
> class TestTableFilter implements BeamSqlTableFilter{code}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to