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

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

                Author: ASF GitHub Bot
            Created on: 01/Jul/20 21:19
            Start Date: 01/Jul/20 21:19
    Worklog Time Spent: 10m 
      Work Description: ibzib commented on a change in pull request #12153:
URL: https://github.com/apache/beam/pull/12153#discussion_r448621802



##########
File path: 
sdks/java/extensions/sql/zetasql/src/test/java/org/apache/beam/sdk/extensions/sql/zetasql/ZetaSQLDialectSpecTest.java
##########
@@ -2841,6 +2842,131 @@ public void testSelectNullExceptAll() {
     
pipeline.run().waitUntilFinish(Duration.standardMinutes(PIPELINE_EXECUTION_WAITTIME_MINUTES));
   }
 
+  @Test
+  public void testMultipleSelectStatementsThrowsException() {
+    String sql = "SELECT 1; SELECT 2;";
+    ZetaSQLQueryPlanner zetaSQLQueryPlanner = new ZetaSQLQueryPlanner(config);
+    thrown.expect(UnsupportedOperationException.class);
+    thrown.expectMessage(
+        "Statement list must end in a SELECT statement, and cannot contain 
more than one SELECT statement.");

Review comment:
       Oops, fixed




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

> 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: 2h 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