Last active
September 5, 2024 04:43
-
-
Save piyushgarg-dev/cad5f052676deb89e12112302ac836b3 to your computer and use it in GitHub Desktop.
Revisions
-
Piyush Garg revised this gist
Feb 15, 2024 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -6,4 +6,4 @@ CREATE TABLE log_events ( metadata Nullable(String) ) ENGINE=MergeTree PARTITION BY toYYYYMM(timestamp) ORDER BY (timestamp); -
Piyush Garg created this gist
Feb 15, 2024 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ CREATE TABLE log_events ( event_id UUID, timestamp DateTime MATERIALIZED now(), deployment_id Nullable(String), log String, metadata Nullable(String) ) ENGINE=MergeTree PARTITION BY toYYYYMM(timestamp) ORDER BY (timestamp, event_id);