zjuwangg opened a new pull request #10201: [FLINK-14687]Add database related 
ddl support to SQL Parser
URL: https://github.com/apache/flink/pull/10201
 
 
   ## What is the purpose of the change
   
   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
   
   ## Brief change log
     - 
[c9b2309](https://github.com/apache/flink/commit/c9b2309a888bb05db2fcf126c89b8b4623a9976a)Add
 show databases parser support
     - 
[6afcc4d](https://github.com/apache/flink/commit/6afcc4d58a09b663524bbf4d353082f3ed7122db)add
 use database support in parser
     - 
[0eb9dba](https://github.com/apache/flink/commit/0eb9dba5f221514e7d8d81d07ff5faa4b2bd76b9)add
 creata database support in parser
     - 
[86f418b](https://github.com/apache/flink/commit/86f418b942a4bad069597f8f2d6d8875edb7ab43)add
 drop database support in parser
     - 
[210ce6a](https://github.com/apache/flink/commit/210ce6a12d00f458851c7c4e4fc63ad72ffebae1)add
 alter database support in parser
     - 
[f513a1d](https://github.com/apache/flink/commit/f513a1dd566673c9c60e2bab0259f82ea14fb2c4)add
 describe database support in parser
   
   
   ## Verifying this change
   This change added tests and can be verified as follows:
     - *FlinkSqlParserImplTest#testShowDataBases*
     - *FlinkSqlParserImplTest#testUseDataBase*
     - *FlinkSqlParserImplTest#testCreateDatabase*
     - *FlinkSqlParserImplTest#testDropDatabase*
     - *FlinkSqlParserImplTest#testAlterDatabase*
     - *FlinkSqlParserImplTest#testAlterDatabase* 
   
   ## Does this pull request potentially affect one of the following parts:
   
     - Dependencies (does it add or upgrade a dependency): (no)
     - The public API, i.e., is any changed class annotated with 
`@Public(Evolving)`: (no)
     - The serializers: (no)
     - The runtime per-record code paths (performance sensitive): ( no )
     - Anything that affects deployment or recovery: JobManager (and its 
components), Checkpointing, Yarn/Mesos, ZooKeeper: (no)
     - The S3 file system connector: ( no)
   
   ## Documentation
   
     - Does this pull request introduce a new feature? (yes )
     - If yes, how is the feature documented? (not applicable)
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to