Debian Codegraph @

test/command/suite/select/columns/window_function/window_count/ascending.test

raw
1 table_create Items TABLE_NO_KEY
2 column_create Items name COLUMN_SCALAR ShortText
3
4 load --table Items
5 [
6 {"name": "item1"},
7 {"name": "item2"},
8 {"name": "item2"},
9 {"name": "item1"},
10 {"name": "item3"},
11 {"name": "item1"}
12 ]
13
14 select Items \
15 --columns[count].stage initial \
16 --columns[count].value 'window_count()' \
17 --columns[count].type UInt32 \
18 --columns[count].window.sort_keys _id \
19 --output_columns '_id, name, count' \
20 --sort_keys _id