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

ASF GitHub Bot logged work on BEAM-9953:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 06/Jul/20 22:50
            Start Date: 06/Jul/20 22:50
    Worklog Time Spent: 10m 
      Work Description: amaliujia commented on a change in pull request #12169:
URL: https://github.com/apache/beam/pull/12169#discussion_r450518775



##########
File path: 
sdks/java/extensions/sql/src/main/java/org/apache/beam/sdk/extensions/sql/impl/ZetaSqlUserDefinedPureSqlTableValuedFunction.java
##########
@@ -0,0 +1,49 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.beam.sdk.extensions.sql.impl;
+
+import java.util.List;
+import org.apache.beam.sdk.annotations.Internal;
+import 
org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.rel.type.RelDataType;
+import 
org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.schema.Function;
+import 
org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.sql.SqlIdentifier;
+import 
org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.sql.type.SqlOperandTypeChecker;
+import 
org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.sql.type.SqlOperandTypeInference;
+import 
org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.sql.type.SqlReturnTypeInference;
+import 
org.apache.beam.vendor.calcite.v1_20_0.org.apache.calcite.sql.validate.SqlUserDefinedFunction;
+
+/** This is a class to indicate that a TVF is a ZetaSQL pure SQL UDTVF. */
+@Internal
+public class ZetaSqlUserDefinedPureSqlTableValuedFunction extends 
SqlUserDefinedFunction {

Review comment:
       `PureSql` is used to differentiate `Java` and `Python` UDTVF, because 
right now I think the latter will hit different path.
   
   If in the future they all turn into use the same path, I will change this 
class by removing `PureSql`    




----------------------------------------------------------------
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: 455130)
    Time Spent: 3h 10m  (was: 3h)

> Beam ZetaSQL supports multiple statements in a query
> ----------------------------------------------------
>
>                 Key: BEAM-9953
>                 URL: https://issues.apache.org/jira/browse/BEAM-9953
>             Project: Beam
>          Issue Type: Task
>          Components: dsl-sql-zetasql
>            Reporter: Rui Wang
>            Assignee: Kyle Weaver
>            Priority: P2
>          Time Spent: 3h 10m
>  Remaining Estimate: 0h
>
> One example of multiple  statements query:
> {code:java}
> CREATE FUNCTION fun_a (param_1 INT64); SELECT fun_a(10);
> {code}



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

Reply via email to