[
https://issues.apache.org/jira/browse/FLINK-29832?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17628633#comment-17628633
]
Shammon commented on FLINK-29832:
---------------------------------
Thanks [~TsReaper] When i tried to fixed this issue, i found the names of
default database in hive and spark are also `default`. So i think the `default`
is better than `default_database`. I'm new to sql, and when using hive, i can
switch to default database `use default;` directly, and it cause in flink table
store. I will change this issue to improve the document in flink table store.
Can you help to review it? THX again :)
> Refactor default database name in flink table store
> ---------------------------------------------------
>
> Key: FLINK-29832
> URL: https://issues.apache.org/jira/browse/FLINK-29832
> Project: Flink
> Issue Type: Bug
> Components: Table Store
> Affects Versions: table-store-0.3.0, table-store-0.2.2
> Reporter: Shammon
> Priority: Major
> Labels: pull-request-available
> Attachments: image-2022-11-01-16-40-47-539.png
>
>
> `FlinkCatalogFactory` creates a default database named `default` in table
> store. The `default` is a keyword in SQL, and when we create a new database,
> we cant execute `use default` to switch to `default` database any more. We
> should refactor the default database name in table store.
> !image-2022-11-01-16-40-47-539.png|thumbnail!
--
This message was sent by Atlassian Jira
(v8.20.10#820010)