Debian Codegraph @

doc/source/example/reference/commands/select/usage_window_function.log

raw
1 Execution example::
2
3 plugin_register functions/number
4 # [[0,1337566253.89858,0.000355720520019531],true]
5 select \
6 --table Entries \
7 --columns[n_likes_sum_per_tag].stage initial \
8 --columns[n_likes_sum_per_tag].type UInt32 \
9 --columns[n_likes_sum_per_tag].value 'window_sum(n_likes)' \
10 --columns[n_likes_sum_per_tag].window.group_keys tag \
11 --output_columns tag,n_likes,n_likes_sum_per_tag
12 # [
13 # [
14 # 0,
15 # 1337566253.89858,
16 # 0.000355720520019531
17 # ],
18 # [
19 # [
20 # [
21 # 5
22 # ],
23 # [
24 # [
25 # "tag",
26 # "ShortText"
27 # ],
28 # [
29 # "n_likes",
30 # "UInt32"
31 # ],
32 # [
33 # "n_likes_sum_per_tag",
34 # "UInt32"
35 # ]
36 # ],
37 # [
38 # "Hello",
39 # 5,
40 # 5
41 # ],
42 # [
43 # "Groonga",
44 # 10,
45 # 25
46 # ],
47 # [
48 # "Groonga",
49 # 15,
50 # 25
51 # ],
52 # [
53 # "Senna",
54 # 3,
55 # 6
56 # ],
57 # [
58 # "Senna",
59 # 3,
60 # 6
61 # ]
62 # ]
63 # ]
64 # ]