-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
be9bbdb
commit 6be4b90
Showing
9 changed files
with
91 additions
and
40 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
CREATE TABLE replicated_orders ( | ||
order_id BIGINT NOT NULL, | ||
customer_id INTEGER, | ||
order_date DATE, | ||
product_id INTEGER, | ||
quantity INTEGER, | ||
price DECIMAL(10, 2), | ||
PRIMARY KEY (order_date, customer_id, order_id) | ||
) | ||
PARTITION BY LIST(order_date) | ||
WITH (orientation='column', | ||
distribution_key='order_date', | ||
clustering_key='order_date' | ||
); | ||
-------------------- | ||
CREATE TABLE replicated_orders ( | ||
order_id BIGINT NOT NULL, | ||
customer_id INTEGER, | ||
order_date DATE, | ||
product_id INTEGER, | ||
quantity INTEGER, | ||
price DECIMAL(10, 2), | ||
PRIMARY KEY (order_date, customer_id, order_id) | ||
) | ||
PARTITION BY LIST (order_date) | ||
WITH ( | ||
orientation = 'column', | ||
distribution_key = 'order_date', | ||
clustering_key = 'order_date' | ||
); |
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
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