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 CTAS statement USING columnstore #26

Closed
ktny opened this issue Nov 12, 2024 · 2 comments
Closed

Support CTAS statement USING columnstore #26

ktny opened this issue Nov 12, 2024 · 2 comments
Labels
feature good first issue Good for newcomers
Milestone

Comments

@ktny
Copy link

ktny commented Nov 12, 2024

What feature are you requesting?

I want to create a columnstore table with a CREATE TABLE AS SELECT statement.

create table t1 (id int, name text);
insert into t1 values (1, 'Alice'), (2, 'Bob');
create table t2 using columnstore as select * from t1;

ERROR:  columnstore_tuple_insert not implemented

CTAS WITH NO_DATA is not a problem.

create table t2 using columnstore as select * from t1 with no data;

Why are you requesting this feature?

Because the CTAS statement is convenient for creating a columnstore table while copying part of a table.

What is your proposed implementation for this feature?

No response

@dpxcc
Copy link
Contributor

dpxcc commented Nov 13, 2024

Yes, this is on our roadmap
Before we support it, you can work around by

create table t2 using columnstore as select * from t1 with no data;
insert into t2 select * from t1;

@dpxcc dpxcc modified the milestones: 0.1.0, tbd Nov 13, 2024
@dpxcc
Copy link
Contributor

dpxcc commented Nov 18, 2024

duckdb/pg_duckdb@4a7596c

@dpxcc dpxcc added the good first issue Good for newcomers label Dec 28, 2024
@dpxcc dpxcc modified the milestones: tbd, 0.1.0 Jan 5, 2025
@dpxcc dpxcc closed this as completed Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants