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

Support prompt style in SqlCli

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.15.0
    • None
    • Table SQL / Client
    • None

    Description

      prompt is a very popular function in cli of traditional database like mysql, help users to notice  session context like current db/catalog/time, avoid calling wrong commands in an unexpected session.

       

      arg comment
      \c current catalog
      \d current db
      \t current time

       for example,

      FLINK SQL> set sql-client.prompt.style=\c~\d~\t;

      catalog1~db1~2021-11-12 16:00:00> show current catalog;

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              liyubin117 Yubin Li
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: