Skip to content

Support CREATE TABLE table_name(...schema_fields) #4396

@mvanschellebeeck

Description

@mvanschellebeeck

Describe the solution you'd like
Support the CREATE TABLE expression, e.g.
CREATE TABLE t1(a INTEGER, b INTEGER, c INTEGER, d INTEGER, e INTEGER);

Executing this with datafusion-cli shows:

DataFusion CLI v14.0.0
❯ CREATE TABLE t1(a INTEGER, b INTEGER, c INTEGER, d INTEGER, e INTEGER);
NotImplemented("Only `CREATE TABLE table_name AS SELECT ...` statement is supported")

Additional context
The ability to create a table with one statement and then insert values into it throughout a sessions forms the basis of a lot of sqllogictests we want to incorporate into testing. See #4248

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions