[ https://issues.apache.org/jira/browse/BEAM-5644?focusedWorklogId=195328&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-195328 ]
ASF GitHub Bot logged work on BEAM-5644: ---------------------------------------- Author: ASF GitHub Bot Created on: 06/Feb/19 19:51 Start Date: 06/Feb/19 19:51 Worklog Time Spent: 10m Work Description: akedin commented on pull request #7745: [BEAM-5644] make Planner configurable URL: https://github.com/apache/beam/pull/7745#discussion_r254425573 ########## File path: sdks/java/extensions/sql/src/main/java/org/apache/beam/sdk/extensions/sql/impl/BeamSqlEnv.java ########## @@ -158,7 +90,7 @@ public void executeDdl(String sqlStatement) throws ParseException { try { SqlExecutableStatement ddl = (SqlExecutableStatement) planner.parse(sqlStatement); ddl.execute(getContext()); - } catch (SqlParseException e) { + } catch (Exception e) { throw new ParseException("Unable to parse DDL statement", e); Review comment: If you wrap specific exceptions in the implementation of `QueryPlanner` you don't need to care here ---------------------------------------------------------------- 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: 195328) Time Spent: 7h 20m (was: 7h 10m) > make Planner configurable > -------------------------- > > Key: BEAM-5644 > URL: https://issues.apache.org/jira/browse/BEAM-5644 > Project: Beam > Issue Type: New Feature > Components: dsl-sql > Reporter: Rui Wang > Assignee: Rui Wang > Priority: Major > Time Spent: 7h 20m > Remaining Estimate: 0h > > We can make planner configurable here: > [BeamQueryPlanner.java#L145|https://github.com/apache/beam/blob/master/sdks/java/extensions/sql/src/main/java/org/apache/beam/sdk/extensions/sql/impl/BeamQueryPlanner.java#L145] > > By doing so, we can have different planner implementation to support > different SQL dialect. -- This message was sent by Atlassian JIRA (v7.6.3#76005)