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

Support database related DDLs (don't need return values) through sqlUpdate() method in TableEnvironment

    XMLWordPrintableJSON

    Details

      Description

      According to FLIP-69, we should support such following DDLs related to the database in the TableEnvironment through `sqlUpdate()` method.

      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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Terry1897 Terry Wang
                Reporter:
                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