[ https://issues.apache.org/jira/browse/BEAM-4449?focusedWorklogId=109099&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-109099 ]
ASF GitHub Bot logged work on BEAM-4449: ---------------------------------------- Author: ASF GitHub Bot Created on: 05/Jun/18 14:54 Start Date: 05/Jun/18 14:54 Worklog Time Spent: 10m Work Description: kennknowles commented on a change in pull request #5544: [BEAM-4449] Replace project and filter with calc URL: https://github.com/apache/beam/pull/5544#discussion_r193103984 ########## File path: sdks/java/extensions/sql/src/main/java/org/apache/beam/sdk/extensions/sql/impl/planner/BeamRuleSets.java ########## @@ -42,11 +49,18 @@ @Internal public class BeamRuleSets { - public static RuleSet[] getRuleSets() { - return new RuleSet[] { - RuleSets.ofList( - BeamProjectRule.INSTANCE, - BeamFilterRule.INSTANCE, + public static List<RelOptRule> LOGICAL_OPTIMIZATIONS = + ImmutableList.of( + // Rules so we only have to implement Calc Review comment: I believe FilterToCalcRule and ProjectToCalcRule eliminate all filters and projects. But it is very hard to know with Calcite whether rules are sufficient. I got no answer on their mailing list so it might just be we need a huge test suite. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on 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: 109099) Time Spent: 2h 20m (was: 2h 10m) > Use Calc instead of Project and Filter separately > ------------------------------------------------- > > Key: BEAM-4449 > URL: https://issues.apache.org/jira/browse/BEAM-4449 > Project: Beam > Issue Type: Improvement > Components: dsl-sql > Reporter: Kenneth Knowles > Assignee: Kenneth Knowles > Priority: Major > Time Spent: 2h 20m > Remaining Estimate: 0h > > Calcite has a combined Calc operator that is amenable to more optimization, > and also means less code to manage as we adjust how the operators/expressions > are implemented. -- This message was sent by Atlassian JIRA (v7.6.3#76005)