Skip to content

Instantly share code, notes, and snippets.

@qi-qi
Last active April 14, 2019 15:48
Show Gist options
  • Save qi-qi/619ba7f97385bab1937eb7a3541e2ab6 to your computer and use it in GitHub Desktop.
Save qi-qi/619ba7f97385bab1937eb7a3541e2ab6 to your computer and use it in GitHub Desktop.
CREATE table data_extract.stitch_parquet WITH (
partitioned_by = ARRAY['dt'],
bucketed_by = ARRAY['request_id'],
bucket_count = 25,
format = 'parquet',
parquet_compression = 'SNAPPY',
external_location = 's3://acast-data-extract-cloudfront/stitch_parquet/') AS
SELECT request_id, bytes, edge_location, dt from data_raw.cf_stitch
=====
CREATE table data_extract.stitch_parquet WITH (
partitioned_by = ARRAY['dt'],
bucketed_by = ARRAY['request_id'],
bucket_count = 25,
format = 'parquet',
parquet_compression = 'SNAPPY',
external_location = 's3://acast-data-extract-cloudfront/stitch_parquet/') AS
SELECT request_id, bytes, edge_location, dt from test.stitch_bk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment