Debian Codegraph @

doc/source/example/reference/functions/between/usage_vector.log

raw
1 Execution example::
2
3 table_create Products TABLE_HASH_KEY ShortText
4 # [[0,1337566253.89858,0.000355720520019531],true]
5 column_create Products prices COLUMN_VECTOR Int32
6 # [[0,1337566253.89858,0.000355720520019531],true]
7 load --table Products
8 [
9 {"_key": "A", "prices": [17, 170, 1700]},
10 {"_key": "B", "prices": [18, 180, 1800]},
11 {"_key": "C", "prices": [19, 190]},
12 {"_key": "D", "prices": [20]},
13 {"_key": "E", "prices": [21, 210, 2100]}
14 ]
15 # [[0,1337566253.89858,0.000355720520019531],5]
16 select Products --filter 'between(prices, 18, "include", 20, "exclude")'
17 # [
18 # [
19 # 0,
20 # 1337566253.89858,
21 # 0.000355720520019531
22 # ],
23 # [
24 # [
25 # [
26 # 2
27 # ],
28 # [
29 # [
30 # "_id",
31 # "UInt32"
32 # ],
33 # [
34 # "_key",
35 # "ShortText"
36 # ],
37 # [
38 # "prices",
39 # "Int32"
40 # ]
41 # ],
42 # [
43 # 2,
44 # "B",
45 # [
46 # 18,
47 # 180,
48 # 1800
49 # ]
50 # ],
51 # [
52 # 3,
53 # "C",
54 # [
55 # 19,
56 # 190
57 # ]
58 # ]
59 # ]
60 # ]
61 # ]