Debian Codegraph @

test/command/suite/select/function/min/reference_vector_column_uint8.test

raw
1 table_create Users TABLE_PAT_KEY ShortText
2 column_create Users age COLUMN_SCALAR UInt8
3
4 table_create Logs TABLE_NO_KEY
5 column_create Logs users COLUMN_VECTOR Users
6
7 load --table Users
8 [
9 {"_key": "alice", "age": 12},
10 {"_key": "bob", "age": 29},
11 {"_key": "chris", "age": 3}
12 ]
13
14 load --table Logs
15 [
16 {"users": ["bob", "chris", "alice"]}
17 ]
18
19 select Logs \
20 --output_columns '_id, min(users.age)'