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
質問済み 9ヶ月前353ビュー
1回答
1
承認された回答

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
サポートエンジニア
回答済み 9ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ