mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 01:51:59 +00:00
Remove harmful code from "geoDistance" #12117
This commit is contained in:
parent
e05283d5d3
commit
731d92657d
@ -102,8 +102,6 @@ void geodistInit()
|
|||||||
inline float geodistDegDiff(float f)
|
inline float geodistDegDiff(float f)
|
||||||
{
|
{
|
||||||
f = fabsf(f);
|
f = fabsf(f);
|
||||||
while (f > 360)
|
|
||||||
f -= 360;
|
|
||||||
if (f > 180)
|
if (f > 180)
|
||||||
f = 360 - f;
|
f = 360 - f;
|
||||||
return f;
|
return f;
|
||||||
|
@ -45,7 +45,8 @@ public:
|
|||||||
internal = internal_;
|
internal = internal_;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Obtain information about columns, their types, default values and column comments, for case when columns in CREATE query is specified explicitly.
|
/// Obtain information about columns, their types, default values and column comments,
|
||||||
|
/// for case when columns in CREATE query is specified explicitly.
|
||||||
static ColumnsDescription getColumnsDescription(const ASTExpressionList & columns, const Context & context, bool sanity_check_compression_codecs);
|
static ColumnsDescription getColumnsDescription(const ASTExpressionList & columns, const Context & context, bool sanity_check_compression_codecs);
|
||||||
static ConstraintsDescription getConstraintsDescription(const ASTExpressionList * constraints);
|
static ConstraintsDescription getConstraintsDescription(const ASTExpressionList * constraints);
|
||||||
|
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
inf
|
1
tests/queries/0_stateless/01359_geodistance_loop.sql
Normal file
1
tests/queries/0_stateless/01359_geodistance_loop.sql
Normal file
@ -0,0 +1 @@
|
|||||||
|
SELECT geoDistance(0., 0., -inf, 1.);
|
Loading…
Reference in New Issue
Block a user