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

CREATE TABLE should return empty DataFrame #3265

Closed
andygrove opened this issue Aug 25, 2022 · 1 comment · Fixed by #3361
Closed

CREATE TABLE should return empty DataFrame #3265

andygrove opened this issue Aug 25, 2022 · 1 comment · Fixed by #3361
Labels
bug Something isn't working sql SQL Planner

Comments

@andygrove
Copy link
Member

Describe the bug

CREATE TABLE should just create the table and not run a query selecting the contents of the table.

❯ create table test as select 1;
+----------+
| Int64(1) |
+----------+
| 1        |
+----------+

This issue was already fixed for CREATE VIEW in #3236

To Reproduce
☝️

Expected behavior
☝️

Additional context
None

@andygrove andygrove added bug Something isn't working sql SQL Planner labels Aug 25, 2022
@kmitchener
Copy link
Contributor

I'll do this one after #3251 is merged into master. that has a small refactoring of returning empty dataframes that this should use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working sql SQL Planner
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants