Can we use CTAS in icebeg tables? - if yes, how?

0

I was trying to create table from select query - in iceberg. I was not able to. Can we use CTAS in icebeg tables? - if yes, how?

  • Short answer is YES. To tell how more detail is required. Are you using Athena ? Trino ? Spark SQL ?

Bharat
asked 9 months ago318 views
1 Answer
1
Accepted Answer

Hello,


Yes, we can use CTAS with iceberg table. You can refer to below AWS documentation and create table syntax.

Sample query:

CREATE TABLE ctas_iceberg_parquet WITH (table_type = 'ICEBERG', format = 'PARQUET', location = 's3://my_athena_results/ctas_iceberg_parquet/', is_external = false, partitioning = ARRAY['month(dt)'], vacuum_min_snapshots_to_keep = 10, vacuum_max_snapshot_age_ms = 259200 ) AS SELECT key1, name1, dt FROM table1;

profile pictureAWS
SUPPORT ENGINEER
answered 8 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions