Debian Codegraph @

test/command/suite/select/index/nested/by_column/range/key.test

raw
1 table_create Int8Table TABLE_PAT_KEY Int8
2
3 table_create Int8Tables TABLE_PAT_KEY Int8
4 column_create Int8Tables index COLUMN_INDEX Int8Table _key
5
6 table_create Users TABLE_PAT_KEY ShortText
7 column_create Users score COLUMN_SCALAR Int8Table
8
9 column_create Int8Table users_score COLUMN_INDEX Users score
10
11 load --table Users
12 [
13 {"_key": "Alice", "score": 2},
14 {"_key": "Bob", "score": 0},
15 {"_key": "Carlos", "score": -1}
16 ]
17
18 log_level --level info
19 #@add-important-log-levels info
20 #@add-ignore-log-pattern /\A\[io\]/
21 select Users \
22 --filter 'score._key < 2 && score._key >= -1' \
23 --output_columns '_key, score'