We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
current_catalog()
Summary
USE CATALOG catalog_name
After the current catalog is set, user can use the table_name directly in the query without specifying catalog_name and database_name.
table_name
catalog_name
database_name
for example
root@0.0.0.0:8000/default> select * from my_catalog.my_database.my_table; root@0.0.0.0:8000/default> select current_catalog(); ┌───────────────────┐ │ current_catalog() │ │ String │ ├───────────────────┤ │ default │ └───────────────────┘ # set current catalog and current database root@0.0.0.0:8000/default> use catalog my_catalog; root@0.0.0.0:8000/default> use my_database; root@0.0.0.0:8000/default> select * from my_table; root@0.0.0.0:8000/default> select current_catalog(); ┌───────────────────┐ │ current_catalog() │ │ String │ ├───────────────────┤ │ my_catalog │ └───────────────────┘
The text was updated successfully, but these errors were encountered:
please let me try implement this @b41sh
Sorry, something went wrong.
flashmouse
No branches or pull requests
Summary
USE CATALOG catalog_name
to set the current catalog.current_catalog()
function to get the current catalog.After the current catalog is set, user can use the
table_name
directly in the query without specifyingcatalog_name
anddatabase_name
.for example
The text was updated successfully, but these errors were encountered: