Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-7594 Add a SQL client
  3. FLINK-9854

Allow passing multi-line input to SQL Client CLI

    XMLWordPrintableJSON

Details

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              twalthr Timo Walther
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h