Skip to content

Commit

Permalink
fix reviewer comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ariesdevil committed Sep 20, 2023
1 parent e63041a commit c7d59cf
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/sqllogictests/suites/query/02_function/02_0060_function_geo
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,33 @@ select geohash_encode(-5.60302734375, 42.593994140625)
----
ezs42d000000

# form 1
query T
select point_in_polygon((3., 3.), [(6, 0), (8, 4), (5, 8), (0, 2)])
----
1

# form 2
query T
select point_in_polygon((1., 1.), [[(4., 0.), (8., 4.), (4., 8.), (0., 4.)], [(3., 3.), (3., 5.), (5., 5.), (5., 3.)]])
----
0

# form 3
query T
select point_in_polygon((2.5, 2.5), [(4., 0.), (8., 4.), (4., 8.), (0., 4.)], [(3., 3.), (3., 5.), (5., 5.), (5., 3.)])
----
1

statement error 1065
select point_in_polygon((3,), [(6, 0), (8, 4)])

statement error 1065
select point_in_polygon((1.,), [[(4., 0.), (8., 4.), (4., 8.), (0., 4.)], [(3., 3.), (3., 5.), (5., 5.), (5., 3.)]])

statement error 1065
select point_in_polygon((2.5,), [(4., 0.), (8., 4.), (4., 8.), (0., 4.)], [(3., 3.), (3., 5.), (5., 5.), (5., 3.)])

query T
select great_circle_angle(-2181569507.9714413, 15253014773.129665, 0.5823419941455749, 0.5823419941455749)
----
Expand Down

0 comments on commit c7d59cf

Please sign in to comment.