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

Daniel Lenz updated FLINK-23017:
--------------------------------
    Description: 
The sql-client still shows the SOURCE command in HELP, even though the command 
itself doesn't exist anymore and using it causes an error.

 
{code:java}
/opt/flink# echo "select 'hello';" > test.sql
/opt/flink# sql-client.sh

Flink SQL> select 'hello';
-- works as intended
[INFO] Result retrieval cancelled.

Flink SQL> source test.sql;
[ERROR] Could not execute SQL statement. Reason: 
org.apache.calcite.runtime.CalciteException: Non-query expression encountered 
in illegal context
{code}
 

 I'd be happy to create a PR and remove the relevant lines from the HELP.

  was:
The sql-client still shows the SOURCE command in HELP, even though the command 
itself doesn't exist anymore and using it causes an error.

 
{code:java}
/opt/flink# echo "select 'hello';" > test.sql
/opt/flink# sql-client.sh

Flink SQL> select 'hello';
-- works as intended
[INFO] Result retrieval cancelled.

Flink SQL> source test.sql;
[ERROR] Could not execute SQL statement. Reason: 
org.apache.calcite.runtime.CalciteException: Non-query expression encountered 
in illegal context
{code}
 

 


> HELP in sql-client still shows the removed SOURCE functionality
> ---------------------------------------------------------------
>
>                 Key: FLINK-23017
>                 URL: https://issues.apache.org/jira/browse/FLINK-23017
>             Project: Flink
>          Issue Type: Bug
>          Components: Table SQL / Client
>    Affects Versions: 1.13.1
>         Environment: This affects 1.13.0 and 1.13.1
>            Reporter: Daniel Lenz
>            Priority: Minor
>
> The sql-client still shows the SOURCE command in HELP, even though the 
> command itself doesn't exist anymore and using it causes an error.
>  
> {code:java}
> /opt/flink# echo "select 'hello';" > test.sql
> /opt/flink# sql-client.sh
> Flink SQL> select 'hello';
> -- works as intended
> [INFO] Result retrieval cancelled.
> Flink SQL> source test.sql;
> [ERROR] Could not execute SQL statement. Reason: 
> org.apache.calcite.runtime.CalciteException: Non-query expression encountered 
> in illegal context
> {code}
>  
>  I'd be happy to create a PR and remove the relevant lines from the HELP.



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

Reply via email to