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

Add option to datafusion-cli to execute SQL from file and keep session open #1872

Closed
matthewmturner opened this issue Feb 22, 2022 · 2 comments · Fixed by #1875
Closed

Add option to datafusion-cli to execute SQL from file and keep session open #1872

matthewmturner opened this issue Feb 22, 2022 · 2 comments · Fixed by #1875
Labels
enhancement New feature or request

Comments

@matthewmturner
Copy link
Contributor

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
(This section helps Arrow developers understand the context and why for this feature, in addition to the what)

I would like to be able to write DDL statements once and save them to a file that could be read by datafusion-cli (similar to the existing --file command which closes after executing the file) this way I could reuse them in future sessions and quickly use my "database" again.

Describe the solution you'd like
A clear and concise description of what you want to happen.
Add a command line option to datafusion-cli that runs the SQL in a file and then leaves you in the sql session to continue writing queries.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@matthewmturner matthewmturner added the enhancement New feature or request label Feb 22, 2022
@matthewmturner
Copy link
Contributor Author

@jimexist FYI - as you've shown interest in datafusion-cli topics in the past.

@mingmwang
Copy link
Contributor

I'm working on the ExecutionContext -> SessionContext refactoring now. We will have a clear session concept in the system.

#1862

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants