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

Show databases should better return sorted results

    XMLWordPrintableJSON

Details

    Description

      flink show databases not support sorted function. I think we can add support for these operations. So when returned results are large, user can locate result easily. we can see mature engines such as mysql did support it.

      Flink SQL> show databases;
      ------------------

         database name

      ------------------

      default_database
                  test
                   sys
                 ca_db

      ------------------

      e.g. mysql

      --------------------

      Database          

      --------------------

      information_schema
      mysql              
      performance_schema
      sys                
      test              
      test_db            

      e.g.  pg:

          Name    |  Owner   | Encoding |   Collate   
      ---------------------------+------------
       pgbench    | postgres | UTF8     | en_US.UTF-8 
       postgres   | postgres | UTF8     | en_US.UTF-8 
       slonmaster | postgres | UTF8     | en_US.UTF-8 
       slonslave  | postgres | UTF8     | en_US.UTF-8 
       template0  | postgres | UTF8     | en_US.UTF-8 
       template1  | postgres | UTF8     | en_US.UTF-8 
       test       | postgres | UTF8     | en_US.UTF-8 

       

      Attachments

        Issue Links

          Activity

            People

              taoran Ran Tao
              taoran Ran Tao
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: