Skip to content

Instantly share code, notes, and snippets.

@arkadius
Created September 25, 2024 13:47
Show Gist options
  • Save arkadius/1fc830255f05c6baa533461205c6858d to your computer and use it in GitHub Desktop.
Save arkadius/1fc830255f05c6baa533461205c6858d to your computer and use it in GitHub Desktop.
CREATE TABLE orders
(
order_timestamp TIMESTAMP,
order_date STRING,
id BIGINT,
customer_id BIGINT
) PARTITIONED BY (order_date);
CREATE TABLE products
(
id BIGINT,
name STRING,
product_category TINYINT,
current_prise DECIMAL(15, 2)
);
CREATE TABLE order_items
(
id BIGINT,
order_id BIGINT,
product_id BIGINT,
quantity BIGINT,
unit_prise DECIMAL(15, 2)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment