[
https://issues.apache.org/jira/browse/BEAM-8630?focusedWorklogId=361916&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-361916
]
ASF GitHub Bot logged work on BEAM-8630:
----------------------------------------
Author: ASF GitHub Bot
Created on: 20/Dec/19 22:20
Start Date: 20/Dec/19 22:20
Worklog Time Spent: 10m
Work Description: apilloud commented on pull request #9913: [BEAM-8630]
Prototype of BeamZetaSqlCalcRel
URL: https://github.com/apache/beam/pull/9913#discussion_r360592000
##########
File path:
sdks/java/extensions/sql/zetasql/src/main/java/org/apache/beam/sdk/extensions/sql/zetasql/ZetaSQLQueryPlanner.java
##########
@@ -64,6 +68,28 @@ public ZetaSQLQueryPlanner(JdbcConnection jdbcConnection,
RuleSet[] ruleSets) {
plannerImpl = new ZetaSQLPlannerImpl(defaultConfig(jdbcConnection,
ruleSets));
}
+ public static RuleSet[] getZetaSqlRuleSets() {
+ // TODO[BEAM-8630]: uncomment the next line once we have fully migrated to
BeamZetaSqlCalcRel
+ // return replaceBeamCalcRule(BeamRuleSets.getRuleSets());
+ return BeamRuleSets.getRuleSets();
+ }
+
+ private static RuleSet[] replaceBeamCalcRule(RuleSet[] ruleSets) {
Review comment:
This is perfect! Thanks!
----------------------------------------------------------------
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:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 361916)
> Prototype of BeamSQL Calc using ZetaSQL Expression Evaluator
> ------------------------------------------------------------
>
> Key: BEAM-8630
> URL: https://issues.apache.org/jira/browse/BEAM-8630
> Project: Beam
> Issue Type: New Feature
> Components: dsl-sql
> Reporter: Yueyang Qiu
> Assignee: Yueyang Qiu
> Priority: Major
> Time Spent: 1h 50m
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)