ClickHouse/tests/queries/0_stateless/01854_s2_cap_contains.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
754 B
MySQL
Raw Normal View History

2021-09-12 12:35:27 +00:00
-- Tags: no-fasttest
-- Tag no-fasttest: needs s2
2021-07-08 15:31:39 +00:00
select s2CapContains(1157339245694594829, 1.0, 1157347770437378819);
select s2CapContains(1157339245694594829, 1.0, 1152921504606846977);
select s2CapContains(1157339245694594829, 3.14, 1157339245694594829);
select s2CapContains(nan, 3.14, 1157339245694594829); -- { serverError ILLEGAL_TYPE_OF_ARGUMENT }
select s2CapContains(1157339245694594829, nan, 1157339245694594829); -- { serverError ILLEGAL_TYPE_OF_ARGUMENT }
select s2CapContains(1157339245694594829, 3.14, nan); -- { serverError ILLEGAL_TYPE_OF_ARGUMENT }
2021-07-08 15:31:39 +00:00
select s2CapContains(toUInt64(-1), -1.0, toUInt64(-1)); -- { serverError BAD_ARGUMENTS }
select s2CapContains(toUInt64(-1), 9999.9999, toUInt64(-1)); -- { serverError BAD_ARGUMENTS }