Skip to content
New issue

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

Support configurable initialize sql statement for engine startup #457

Closed
yaooqinn opened this issue Mar 26, 2021 · 2 comments
Closed

Support configurable initialize sql statement for engine startup #457

yaooqinn opened this issue Mar 26, 2021 · 2 comments
Assignees
Labels
kind:feature Feature request
Milestone

Comments

@yaooqinn
Copy link
Member

1. Describe the feature

Currently, the engine uses hardcoded show databases to force initialization with catalog eagerly bootstrapping too

we can make it configurable with a comma separate query list and select current_database() might be used as default since it's more lightweight than show databases in real-world cases

2. Motivation

Initialize SQLs can meet some particular cases when users may want something to be activated by default before queries.

3. Describe the solution

kyuubi.engine.initialize.sql can be introduced to achieve this goal with a default value SELECT CURRENT_DATABASE()

4. Additional context

@yaooqinn yaooqinn added the kind:feature Feature request label Mar 26, 2021
@yaooqinn
Copy link
Member Author

CC @turboFei Can you help with this?

@turboFei
Copy link
Member

sure, with pleasure

@yaooqinn yaooqinn added this to the v1.2.0 milestone Mar 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:feature Feature request
Projects
None yet
Development

No branches or pull requests

2 participants