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
posta 9 mesi fa353 visualizzazioni
1 Risposta
1
Risposta accettata

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
TECNICO DI SUPPORTO
con risposta 9 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande