Debian Codegraph @

test/command/suite/select/function/h3_in_grid_disk/selector/valid.test

raw
1 #@on-error omit
2 plugin_register tokenizers/h3_index
3 plugin_register functions/h3
4 #@on-error default
5
6 table_create H3Indexes TABLE_PAT_KEY UInt64 \
7 --default_tokenizer 'TokenH3Index("resolution", 10)'
8
9 table_create Data TABLE_HASH_KEY ShortText
10 column_create Data location COLUMN_SCALAR WGS84GeoPoint
11
12 column_create H3Indexes data_location COLUMN_INDEX Data location
13
14 load --table Data
15 [
16 {"_key": "ClearCode: 35.80460x139.45649", "location": "35.80460x139.45649"},
17 {"_key": "Shin Tokorozawa: 35.80747x139.45602", "location": "35.80747x139.45602"},
18 {"_key": "Koku koen: 35.79841x139.46573", "location": "35.79841x139.46573"}
19 ]
20
21 select Data --filter 'h3_in_grid_disk(location, "35.80460x139.45649", 10, 3)'