-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathcreate_call.sql
More file actions
32 lines (32 loc) · 1.67 KB
/
create_call.sql
File metadata and controls
32 lines (32 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
CREATE TABLE <databaseName>.`call`(`DateTime` DateTime64(6,'Europe/Moscow'),
`duration` Int32,
`Level` Int32,
`Process` String,
`ProcessID` Int32,
`ProcessName` String,
`OSThread` Int32,
`ClientID` Int32,
`ApplicationName` String,
`ComputerName` String,
`CallWait` Int32,
`First` String,
`SessionID` Int32,
`User` String,
`Function` String,
`Module` String,
`Method` String,
`Report` String,
`IName` String,
`MName` String,
`Interface` String,
`DstClientID` Int32,
`CallID` Int32,
`Memory` Int32,
`MemoryPeak` Int32,
`InBytes` Int32,
`OutBytes` Int32,
`CpuTime` Int32,
`Context` String,
`message` String,
`file` String) ENGINE = MergeTree() PARTITION BY toYYYYMM(DateTime)
ORDER BY (DateTime);