Debian Codegraph @

test/command/suite/select/columns/applier/h3_grid_distance/accessor.expected

raw
1 plugin_register functions/h3
2 [[0,0.0,0.0],true]
3 table_create Data TABLE_HASH_KEY ShortText
4 [[0,0.0,0.0],true]
5 column_create Data location COLUMN_SCALAR WGS84GeoPoint
6 [[0,0.0,0.0],true]
7 load --table Data
8 [
9 {"_key": "ClearCode: 35.80460x139.45649", "location": "35.80460x139.45649"},
10 {"_key": "Shin Tokorozawa: 35.80747x139.45602", "location": "35.80747x139.45602"},
11 {"_key": "Koku koen: 35.79841x139.46573", "location": "35.79841x139.46573"}
12 ]
13 [[0,0.0,0.0],3]
14 select --table Data --filter 'true' --columns[distance].stage filtered --columns[distance].type UInt64 --columns[distance].value 'h3_grid_distance(location, "35.80460x139.45649", 10)' --output_columns '_key, distance'
15 [
16 [
17 0,
18 0.0,
19 0.0
20 ],
21 [
22 [
23 [
24 3
25 ],
26 [
27 [
28 "_key",
29 "ShortText"
30 ],
31 [
32 "distance",
33 "UInt64"
34 ]
35 ],
36 [
37 "ClearCode: 35.80460x139.45649",
38 0
39 ],
40 [
41 "Shin Tokorozawa: 35.80747x139.45602",
42 3
43 ],
44 [
45 "Koku koen: 35.79841x139.46573",
46 10
47 ]
48 ]
49 ]
50 ]