Skip to content

CREATE TABLE should return empty DataFrame #3265

@andygrove

Description

@andygrove

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingsqlSQL Planner

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions