Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-14686 Flink SQL DDL Enhancement
  3. FLINK-14687

Add database related ddl support to SQL Parser

    XMLWordPrintableJSON

Details

    Description

      According to FLIP-69, we should introduce such following DDLs related to the database in the sql parser.

      1. createDatabaseStatement:
      CREATE DATABASE [ IF NOT EXISTS ] [ catalogName.] dataBaseName
      [ COMMENT database_comment ]
      [WITH ( name=value [, name=value]*)]

      2. dropDatabaseStatement:
      DROP DATABASE [ IF EXISTS ] [ catalogName.] dataBaseName
      [ (RESTRICT|CASCADE)]

      3. alterDatabaseStatement:
      ALTER DATABASE [ catalogName.] dataBaseName SET
      ( name=value [, name=value]*)

      4. useDatabaseStatement:
      USE [ catalogName.] dataBaseName

      5. showDatabasesStatement:
      SHOW DATABASES

      6. descDatabaseStatement:
      DESCRIBE DATABASE [ EXTENDED] [ catalogName.] dataBasesName

      Attachments

        Issue Links

          Activity

            People

              Terry1897 Terry Wang
              Terry1897 Terry Wang
              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 - 20m
                  20m