Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-23017

HELP in sql-client still shows the removed SOURCE functionality

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    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.

       

      /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
      

       

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

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            nicholasjiang Nicholas Jiang
            DanielLenz Daniel Lenz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment