forked from Segate-ekb/vector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
create_tlock.sql
27 lines (27 loc) · 1.44 KB
/
create_tlock.sql
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
CREATE TABLE <databaseName>.tlock(`DateTime` DateTime64(6,'Europe/Moscow'),
`duration` Int32,
`Level` Int32,
`Process` String,
`ProcessID` Int32,
`ProcessName` String,
`OSThread` Int32,
`ClientID` Int32,
`ApplicationName` String,
`ComputerName` String,
`ConnectID` Int32,
`SessionID` Int32,
`User` String,
`AppID` String,
`DBMS` String,
`DataBase` String,
`Regions` String,
`Locks` String,
`WaitConnections` Int32,
`Escalating` String,
`Durationus` Int32,
`Exception` String,
`Description` String,
`Context` String,
`message` String,
`file` String) ENGINE = MergeTree() PARTITION BY toYYYYMM(DateTime)
ORDER BY (DateTime);