beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Work logged] (BEAM-5644) make Planner configurable
Date Mon, 08 Oct 2018 22:40:01 GMT


ASF GitHub Bot logged work on BEAM-5644:

                Author: ASF GitHub Bot
            Created on: 08/Oct/18 22:39
            Start Date: 08/Oct/18 22:39
    Worklog Time Spent: 10m 
      Work Description: apilloud commented on a change in pull request #6598: [BEAM-5644]
make planner impl configurable

 File path: sdks/java/extensions/sql/src/main/java/org/apache/beam/sdk/extensions/sql/impl/
 @@ -19,45 +19,25 @@
 import org.apache.beam.sdk.extensions.sql.impl.planner.BeamRuleSets;
-import org.apache.beam.sdk.extensions.sql.impl.rel.BeamLogicalConvention;
-import org.apache.beam.sdk.extensions.sql.impl.rel.BeamRelNode;
 import org.apache.calcite.config.CalciteConnectionConfig;
 import org.apache.calcite.jdbc.CalciteConnection;
 import org.apache.calcite.jdbc.CalciteSchema;
 import org.apache.calcite.plan.Contexts;
 import org.apache.calcite.plan.ConventionTraitDef;
-import org.apache.calcite.plan.RelOptPlanner.CannotPlanException;
-import org.apache.calcite.plan.RelOptUtil;
 import org.apache.calcite.plan.RelTraitDef;
-import org.apache.calcite.plan.RelTraitSet;
 import org.apache.calcite.prepare.CalciteCatalogReader;
-import org.apache.calcite.rel.RelRoot;
 import org.apache.calcite.schema.SchemaPlus;
-import org.apache.calcite.sql.SqlNode;
 import org.apache.calcite.sql.SqlOperatorTable;
-import org.apache.calcite.sql.parser.SqlParseException;
 import org.apache.calcite.sql.parser.SqlParser;
 import org.apache.calcite.sql.parser.SqlParserImplFactory;
 import org.apache.calcite.sql.util.ChainedSqlOperatorTable;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
- * The core component to handle through a SQL statement, from explain execution plan, to
generate a
- * Beam pipeline.
- */
-class BeamQueryPlanner {
-  private static final Logger LOG = LoggerFactory.getLogger(BeamQueryPlanner.class);
-  private final FrameworkConfig config;
-  BeamQueryPlanner(CalciteConnection connection) {
+/** Factory that creates {@link FrameworkConfig}. */
+class CalciteFrameworkConfigFactory {
+  public static FrameworkConfig create(CalciteConnection connection) {
 Review comment:
   This function only used in `BeamSqlEnv`, might that be a better home for it? (If not, please
drop the `public`.)

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:

Issue Time Tracking

    Worklog Id:     (was: 152448)
    Time Spent: 4h 20m  (was: 4h 10m)

> make Planner configurable 
> --------------------------
>                 Key: BEAM-5644
>                 URL:
>             Project: Beam
>          Issue Type: New Feature
>          Components: dsl-sql
>            Reporter: Rui Wang
>            Assignee: Rui Wang
>            Priority: Major
>          Time Spent: 4h 20m
>  Remaining Estimate: 0h
> We can make planner configurable here: [|]
> By doing so, we can have different planner implementation to support different SQL dialect.

This message was sent by Atlassian JIRA

View raw message