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

Kyle Weaver commented on BEAM-9953:
-----------------------------------

While it's true we only need to get table names from the last SELECT statement, 
parsing out the last SELECT statement is non-trivial. analyzeNextStatement 
depends on the extracted tables. We might be able to do this:
 # analyze next statement
 # if analyze succeeded, continue.
 # if analyze failed due to "table not found," extract tables and re-analyze 
with the extracted tables.

But that seems hacky.

> 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
>
> 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