Kouhei Sutou
null+****@clear*****
Tue Dec 16 15:50:32 JST 2014
Kouhei Sutou 2014-12-16 15:50:32 +0900 (Tue, 16 Dec 2014) New Revision: f73e3f5373ca92446be90110ab390700aa7719a2 https://github.com/groonga/groonga/commit/f73e3f5373ca92446be90110ab390700aa7719a2 Message: test: add a test for indexing vector of geo point Added files: test/command/suite/load/index/online/vector/wgs84_geo_point.expected test/command/suite/load/index/online/vector/wgs84_geo_point.test Added: test/command/suite/load/index/online/vector/wgs84_geo_point.expected (+83 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/load/index/online/vector/wgs84_geo_point.expected 2014-12-16 15:50:32 +0900 (f3faed7) @@ -0,0 +1,83 @@ +table_create Users TABLE_NO_KEY +[[0,0.0,0.0],true] +column_create Users points COLUMN_VECTOR WGS84GeoPoint +[[0,0.0,0.0],true] +table_create Points TABLE_PAT_KEY WGS84GeoPoint +[[0,0.0,0.0],true] +column_create Points users_points COLUMN_INDEX Users points +[[0,0.0,0.0],true] +load --table Users +[ +["points"], +[["130094061x505025099", "130185500x505009000"]], +[["35.658611x139.745556"]], +[[]] +] +[[0,0.0,0.0],3] +select Users --output_columns points +[ + [ + 0, + 0.0, + 0.0 + ], + [ + [ + [ + 3 + ], + [ + [ + "points", + "WGS84GeoPoint" + ] + ], + [ + [ + "130094061x505025099", + "130185500x505009000" + ] + ], + [ + [ + "128371000x503084002" + ] + ], + [ + [ + + ] + ] + ] + ] +] +select Points --output_columns _key +[ + [ + 0, + 0.0, + 0.0 + ], + [ + [ + [ + 3 + ], + [ + [ + "_key", + "WGS84GeoPoint" + ] + ], + [ + "128371000x503084002" + ], + [ + "130094061x505025099" + ], + [ + "130185500x505009000" + ] + ] + ] +] Added: test/command/suite/load/index/online/vector/wgs84_geo_point.test (+16 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/load/index/online/vector/wgs84_geo_point.test 2014-12-16 15:50:32 +0900 (a552cb3) @@ -0,0 +1,16 @@ +table_create Users TABLE_NO_KEY +column_create Users points COLUMN_VECTOR WGS84GeoPoint + +table_create Points TABLE_PAT_KEY WGS84GeoPoint +column_create Points users_points COLUMN_INDEX Users points + +load --table Users +[ +["points"], +[["130094061x505025099", "130185500x505009000"]], +[["35.658611x139.745556"]], +[[]] +] + +select Users --output_columns points +select Points --output_columns _key -------------- next part -------------- HTML����������������������������... Download