CREATE TABLE polygons (polygon Array(Array(Tuple(Float64, Float64)))) ENGINE = Memory
INSERT INTO polygons
WITH number + 1 AS radius
SELECT [arrayMap(x -> (cos(x / 90. * pi()) * radius, sin(x / 90. * pi()) * radius), range(180))]
FROM numbers(1000000)
SELECT pointInPolygon((100, 100), polygon) FROM polygons FORMAT Null
DROP TABLE IF EXISTS polygons