Created
April 7, 2023 13:08
-
-
Save mshakhomirov/4addad1d782e1d1433049d87ab68c077 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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