Debian Codegraph @

test/command/suite/select/function/in_records/match.expected

raw
1 table_create Conditions TABLE_NO_KEY
2 [[0,0.0,0.0],true]
3 column_create Conditions user_pattern COLUMN_SCALAR ShortText
4 [[0,0.0,0.0],true]
5 table_create Logs TABLE_NO_KEY
6 [[0,0.0,0.0],true]
7 column_create Logs user COLUMN_SCALAR ShortText
8 [[0,0.0,0.0],true]
9 load --table Conditions
10 [
11 {"user_pattern": "ali"},
12 {"user_pattern": "ris"}
13 ]
14 [[0,0.0,0.0],2]
15 load --table Logs
16 [
17 {"user": "alice"},
18 {"user": "bob"},
19 {"user": "chris"},
20 {"user": "david"}
21 ]
22 [[0,0.0,0.0],4]
23 select Logs --filter 'in_records(Conditions, user, "@", "user_pattern")'
24 [
25 [
26 0,
27 0.0,
28 0.0
29 ],
30 [
31 [
32 [
33 2
34 ],
35 [
36 [
37 "_id",
38 "UInt32"
39 ],
40 [
41 "user",
42 "ShortText"
43 ]
44 ],
45 [
46 1,
47 "alice"
48 ],
49 [
50 3,
51 "chris"
52 ]
53 ]
54 ]
55 ]