Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-21454 FLIP-163: SQL Client Improvements
  3. FLINK-21774

Display result of all the SHOW command in tableau format

    XMLWordPrintableJSON

Details

    Description

      Currently, all the SHOW command result in SQL Client deosn't in tableau format. We should unify the behavior and display in tableau format.

      show catalogs;
      c1
      default_catalog
      !ok
      

      ==>

      show catalogs;
      +-----------------+
      |    catalog name |
      +-----------------+
      |              c1 |
      | default_catalog |
      +-----------------+
      2 rows in set
      !ok
      

      Besides, SQL Client will display column names even if the return set is empty:

      SHOW MODULES;
      +-------------+
      | module name |
      +-------------+
      0 row in set
      !ok
      

      In mature databases, e.g. MySQL, they only show "Empty Set" instead of column names:

      mysql> show tables;
      Empty set (0.00 sec)
      

      We can improve this by simply omit the column names header.

      Attachments

        Issue Links

          Activity

            People

              nicholasjiang Nicholas Jiang
              jark Jark Wu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: