xuefuz commented on a change in pull request #10296: [FLINK-14691][table]Add 
use/create/drop/alter database operation and support it in flink/blink planner
URL: https://github.com/apache/flink/pull/10296#discussion_r349856914
 
 

 ##########
 File path: 
flink-table/flink-table-planner-blink/src/main/java/org/apache/flink/table/planner/operations/SqlToOperationConverter.java
 ##########
 @@ -186,6 +204,64 @@ private Operation convertUseCatalog(SqlUseCatalog 
useCatalog) {
                return new UseCatalogOperation(useCatalog.getCatalogName());
        }
 
+       /** Convert use database statement. */
+       private Operation convertUseDatabase(SqlUseDatabase useDatabase) {
+               return new UseDatabaseOperation(useDatabase.fullDatabaseName());
 
 Review comment:
   To be consistent with other db related operations, I think we can also try 
to resolve missing catalog name here.

----------------------------------------------------------------
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