Skip to content

Instantly share code, notes, and snippets.

@mshakhomirov
Created April 7, 2023 13:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mshakhomirov/4addad1d782e1d1433049d87ab68c077 to your computer and use it in GitHub Desktop.
Save mshakhomirov/4addad1d782e1d1433049d87ab68c077 to your computer and use it in GitHub Desktop.
CREATE TABLE IF NOT EXISTS mydatabase.user_transactions (
dt date,
user_id int,
total_cost_usd float,
registration_date string
)
PARTITIONED BY (dt)
LOCATION 's3://datalake.staging.aws/data/myschema/optimized-data-iceberg-parquet/'
TBLPROPERTIES (
'table_type'='ICEBERG',
'format'='parquet',
'write_target_data_file_size_bytes'='536870912',
'optimize_rewrite_delete_file_threshold'='10'
)
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment