Skip to content

Commit

Permalink
round
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacbrodsky committed Dec 6, 2024
1 parent 264434f commit f79b8c1
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions test/sql/h3/h3_functions_vertex.test
Original file line number Diff line number Diff line change
Expand Up @@ -71,34 +71,34 @@ SELECT h3_cell_to_vertex(cast(h3_string_to_h3('823d6ffffffffff') as bigint), -1)
NULL

query I
SELECT h3_vertex_to_latlng(h3_string_to_h3('2222597fffffffff'));
SELECT list_transform(h3_vertex_to_latlng(h3_string_to_h3('2222597fffffffff')), x -> round(x, 12));
----
[39.38084284181812, 88.57496213785487]
[39.380842841818, 88.574962137855]

query I
SELECT h3_vertex_to_latlng(cast(h3_string_to_h3('2222597fffffffff') as bigint));
SELECT list_transform(h3_vertex_to_latlng(cast(h3_string_to_h3('2222597fffffffff') as bigint)), x -> round(x, 12));
----
[39.38084284181812, 88.57496213785487]
[39.380842841818, 88.574962137855]

query I
SELECT h3_vertex_to_lat(h3_string_to_h3('2222597fffffffff'));
SELECT round(h3_vertex_to_lat(h3_string_to_h3('2222597fffffffff')), 12);
----
39.38084284181812
39.380842841818

query I
SELECT h3_vertex_to_lat(cast(h3_string_to_h3('2222597fffffffff') as bigint));
SELECT round(h3_vertex_to_lat(cast(h3_string_to_h3('2222597fffffffff') as bigint)), 12);
----
39.38084284181812
39.380842841818

query I
SELECT h3_vertex_to_lng(h3_string_to_h3('2222597fffffffff'));
SELECT round(h3_vertex_to_lng(h3_string_to_h3('2222597fffffffff')), 12);
----
88.57496213785487
88.574962137855

query I
SELECT h3_vertex_to_lng(cast(h3_string_to_h3('2222597fffffffff') as bigint));
SELECT round(h3_vertex_to_lng(cast(h3_string_to_h3('2222597fffffffff') as bigint)), 12);
----
88.57496213785487
88.574962137855

query I
SELECT h3_cell_to_vertexes('823d6ffffffffff');
Expand All @@ -121,16 +121,16 @@ SELECT h3_cell_to_vertex('823d6ffffffffff', -1);
NULL

query I
SELECT h3_vertex_to_latlng('2222597fffffffff');
SELECT list_transform(h3_vertex_to_latlng('2222597fffffffff'), x -> round(x, 12));
----
[39.38084284181812, 88.57496213785487]
[39.380842841818, 88.574962137855]

query I
SELECT h3_vertex_to_lat('2222597fffffffff');
SELECT round(h3_vertex_to_lat('2222597fffffffff'), 12);
----
39.38084284181812
39.380842841818

query I
SELECT h3_vertex_to_lng('2222597fffffffff');
SELECT round(h3_vertex_to_lng('2222597fffffffff'), 12);
----
88.57496213785487
88.574962137855

0 comments on commit f79b8c1

Please sign in to comment.