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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠