mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-05 05:52:05 +00:00
18 lines
627 B
XML
18 lines
627 B
XML
<test>
|
|
<settings>
|
|
<optimize_trivial_insert_select>0</optimize_trivial_insert_select>
|
|
</settings>
|
|
|
|
<create_query>CREATE TABLE polygons (polygon Array(Array(Tuple(Float64, Float64)))) ENGINE = Memory</create_query>
|
|
<create_query>
|
|
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)
|
|
</create_query>
|
|
|
|
<query>SELECT pointInPolygon((100, 100), polygon) FROM polygons FORMAT Null</query>
|
|
|
|
<drop_query>DROP TABLE IF EXISTS polygons</drop_query>
|
|
</test>
|