You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Rui Li (Jira)" <ji...@apache.org> on 2020/05/26 12:03:00 UTC

[jira] [Commented] (FLINK-17941) Switching database doesn't work from SQL CLI

    [ https://issues.apache.org/jira/browse/FLINK-17941?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17116673#comment-17116673 ] 

Rui Li commented on FLINK-17941:
--------------------------------

The CLI incorrectly treats {{[`myhive`.`db1`]}} as the DB name.

> Switching 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
>            Priority: Blocker
>             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)