mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-24 08:50:40 +00:00
fix: round euclidean result in sqlness (#4956)
This commit is contained in:
@@ -143,7 +143,7 @@ SELECT
|
||||
h3_grid_distance(cell1, cell2) AS distance,
|
||||
h3_grid_path_cells(cell1, cell2) AS path_cells,
|
||||
round(h3_distance_sphere_km(cell1, cell2), 5) AS sphere_distance,
|
||||
h3_distance_degree(cell1, cell2) AS euclidean_distance,
|
||||
round(h3_distance_degree(cell1, cell2), 14) AS euclidean_distance,
|
||||
FROM
|
||||
(
|
||||
SELECT
|
||||
@@ -154,7 +154,7 @@ FROM
|
||||
+----------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------+--------------------+
|
||||
| distance | path_cells | sphere_distance | euclidean_distance |
|
||||
+----------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------+--------------------+
|
||||
| 9 | [604189371209351167, 604189371075133439, 604189375235883007, 604189375101665279, 604189638034194431, 604189638571065343, 604189638436847615, 604189642597597183, 604189642463379455, 604189641255419903] | 55.05017 | 0.5493924369709845 |
|
||||
| 9 | [604189371209351167, 604189371075133439, 604189375235883007, 604189375101665279, 604189638034194431, 604189638571065343, 604189638436847615, 604189642597597183, 604189642463379455, 604189641255419903] | 55.05017 | 0.54939243697098 |
|
||||
+----------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------+--------------------+
|
||||
|
||||
SELECT
|
||||
|
||||
@@ -49,7 +49,7 @@ SELECT
|
||||
h3_grid_distance(cell1, cell2) AS distance,
|
||||
h3_grid_path_cells(cell1, cell2) AS path_cells,
|
||||
round(h3_distance_sphere_km(cell1, cell2), 5) AS sphere_distance,
|
||||
h3_distance_degree(cell1, cell2) AS euclidean_distance,
|
||||
round(h3_distance_degree(cell1, cell2), 14) AS euclidean_distance,
|
||||
FROM
|
||||
(
|
||||
SELECT
|
||||
|
||||
Reference in New Issue
Block a user