forked from Segate-ekb/vector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
create_scall.sql
22 lines (22 loc) · 1.17 KB
/
create_scall.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
CREATE TABLE <databaseName>.scall(`DateTime` DateTime64(6,'Europe/Moscow'),
`duration` Int32,
`Level` Int32,
`Process` String,
`ProcessID` Int32,
`ProcessName` String,
`OSThread` Int32,
`ClientID` Int32,
`ApplicationName` String,
`ComputerName` String,
`SessionID` Int32,
`User` String,
`Method` String,
`IName` String,
`MName` String,
`Interface` String,
`DstClientID` Int32,
`CallID` Int32,
`Context` String,
`message` String,
`file` String) ENGINE = MergeTree() PARTITION BY toYYYYMM(DateTime)
ORDER BY (DateTime);