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

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_r360593247
 
 

 ##########
 File path: 
sdks/java/extensions/sql/zetasql/src/main/java/org/apache/beam/sdk/extensions/sql/zetasql/translation/SingleRowScanConverter.java
 ##########
 @@ -36,6 +42,22 @@ public boolean canConvert(ResolvedSingleRowScan zetaNode) {
 
   @Override
   public RelNode convert(ResolvedSingleRowScan zetaNode, List<RelNode> inputs) 
{
-    return LogicalValues.createOneRow(getCluster());
+    return createOneRow(getCluster());
+  }
+
+  // This function is a reimplementation of Calcite's 
LogicalValues.createOneRow() with a single
+  // line change: SqlTypeName.INTEGER replaced by SqlTypeName.BIGINT.
+  // Would like to use LogicalValues.createOneRow(), but it uses type 
SqlTypeName.INTEGER which
+  // correspond to TypeKind.TYPE_INT32 in ZetaSQL, a type not supported in 
PRODUCT_EXTERNAL mode.
+  private static LogicalValues createOneRow(RelOptCluster cluster) {
 
 Review comment:
   I don't understand this. More context please?
 
----------------------------------------------------------------
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: 361917)
    Time Spent: 2h  (was: 1h 50m)

> 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: 2h
>  Remaining Estimate: 0h
>




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

Reply via email to