-
Notifications
You must be signed in to change notification settings - Fork 752
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8dcd527
commit 4558ebf
Showing
3 changed files
with
114 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
tests/sqllogictests/suites/query/02_function/02_0060_function_geometry.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
statement ok | ||
DROP TABLE IF EXISTS t1 | ||
|
||
statement ok | ||
CREATE TABLE t1 (lat Float64, lon Float64) ENGINE=Memory | ||
|
||
statement ok | ||
INSERT INTO t1 VALUES(55.77922738, 37.63098076), (5.77922738, 7.63098076) | ||
|
||
query T | ||
SELECT to_string(st_makepoint(lat, lon)) FROM t1 | ||
---- | ||
POINT(55.77922738 37.63098076) | ||
POINT(5.77922738 7.63098076) | ||
|
||
query T | ||
SELECT st_makepoint(lat, lon)::String FROM t1 | ||
---- | ||
POINT(55.77922738 37.63098076) | ||
POINT(5.77922738 7.63098076) | ||
|
||
statement ok | ||
DROP TABLE IF EXISTS t1 |