Created
July 19, 2019 18:57
-
-
Save tkaemming/951bb0715fb7683ce243a1994b90dbea to your computer and use it in GitHub Desktop.
Revisions
-
tkaemming created this gist
Jul 19, 2019 .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,37 @@ CREATE TABLE calls ( -- Kafka Message Details timestamp DateTime, partition UInt8, offset UInt64, -- Call Signature service String, method String, arguments Nested ( name String, value String ), -- Call Results results Nested ( backend String, started Nullable(UInt64), -- millisecond timestamp finished Nullable(UInt64), -- millisecond timestamp status Enum8( 'success' = 0, 'failure' = 1 ), exception_type Nullable(String), similarity Nullable(Float32) -- [0.0, 1.0] (not similar to exact same) compared to baseline (first) result ) -- Additional Tags tags Nested ( name String, value String ) ) ENGINE = MergeTree PARTITION BY toDate(timestamp) ORDER BY (service, method, timestamp)