[ https://issues.apache.org/jira/browse/FLINK-17941?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jark Wu closed FLINK-17941. --------------------------- Resolution: Duplicate > Switching catalog or database doesn't work from SQL CLI > ------------------------------------------------------- > > Key: FLINK-17941 > URL: https://issues.apache.org/jira/browse/FLINK-17941 > Project: Flink > Issue Type: Bug > Components: Table SQL / Client > Reporter: Rui Li > Assignee: Rui Li > Priority: Blocker > Labels: pull-request-available > Fix For: 1.11.0 > > > To reproduce: > {noformat} > Flink SQL> create database db1; > [INFO] Database has been created. > Flink SQL> use db1; > [ERROR] Could not execute SQL statement. Reason: > org.apache.flink.table.catalog.exceptions.CatalogException: A database with > name [`myhive`.`db1`] does not exist in the catalog: [myhive]. > Flink SQL> show databases; > db1 > default > {noformat} -- This message was sent by Atlassian Jira (v8.3.4#803005)