mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-05 05:52:05 +00:00
18 lines
633 B
SQL
18 lines
633 B
SQL
SET geo_distance_returns_float64_on_float64_arguments = 0;
|
|
|
|
SELECT round(greatCircleAngle(0, 45, 0.1, 45.1), 4);
|
|
SELECT round(greatCircleAngle(0, 45, 1, 45), 4);
|
|
SELECT round(greatCircleAngle(0, 45, 1, 45.1), 4);
|
|
|
|
SELECT round(greatCircleDistance(0, 0, 0, 90), 4);
|
|
SELECT round(greatCircleDistance(0, 0, 90, 0), 4);
|
|
|
|
SET geo_distance_returns_float64_on_float64_arguments = 1;
|
|
|
|
SELECT round(greatCircleAngle(0, 45, 0.1, 45.1), 4);
|
|
SELECT round(greatCircleAngle(0, 45, 1, 45), 4);
|
|
SELECT round(greatCircleAngle(0, 45, 1, 45.1), 4);
|
|
|
|
SELECT round(greatCircleDistance(0, 0, 0, 90), 4);
|
|
SELECT round(greatCircleDistance(0, 0, 90, 0), 4);
|