[ 
https://issues.apache.org/jira/browse/FLINK-9854?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jark Wu closed FLINK-9854.
--------------------------
    Resolution: Fixed

This has been supported in 1.13 by the new introduce {{-f sqlfile}} option. 

> Allow passing multi-line input to SQL Client CLI
> ------------------------------------------------
>
>                 Key: FLINK-9854
>                 URL: https://issues.apache.org/jira/browse/FLINK-9854
>             Project: Flink
>          Issue Type: Sub-task
>          Components: Table SQL / Client
>            Reporter: Timo Walther
>            Priority: Major
>              Labels: auto-unassigned, pull-request-available
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> We should support {{flink-cli < query01.sql}} or {{echo "INSERT INTO bar 
> SELECT * FROM foo" | flink-cli}} for convenience. I'm not sure how well we 
> support multilines and EOF right now. Currenlty, with the experimental {{-u}} 
> flag the user also gets the correct error code after the submission, with 
> {{flink-cli < query01.sql}} the CLI would either stay in interactive mode or 
> always return success.
> We should also discuss which statements are allowed. Actually, only DDL and 
> {{INSERT INTO}} statements make sense so far.



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

Reply via email to