Debian Codegraph @

test/command/suite/select/sortby/geo/distance/not_indexed.test

raw
1 table_create Locations TABLE_PAT_KEY WGS84GeoPoint
2
3 table_create Shops TABLE_NO_KEY
4 column_create Shops name COLUMN_SCALAR ShortText
5 column_create Shops location COLUMN_SCALAR WGS84GeoPoint
6
7 column_create Locations shop COLUMN_INDEX Shops location
8
9 load --table Shops
10 [
11 {"name":"根津のたいやき", "location":"128592911x503145263"},
12 {"name":"たい焼 カタオカ", "location":null}
13 ]
14
15 select Shops \
16 --sortby 'geo_distance(location, "35.67487x139.76352")' \
17 --output_columns '_id, name, location'
18