ClickHouse/dbms/tests/queries/0_stateless/00362_great_circle_distance.sql

7 lines
293 B
MySQL
Raw Normal View History

2016-08-15 15:00:02 +00:00
SELECT floor(greatCircleDistance(33.3, 55.3, 38.7, 55.1)) AS distance;
SELECT floor(greatCircleDistance(33.3 + v, 55.3 + v, 38.7 + v , 55.1 + v)) AS distance from
(
select number + 0.1 as v from system.numbers limit 1
);
SELECT floor(greatCircleDistance(33.3, 55.3, 33.3, 55.3)) AS distance;