Skip to content

Commit

Permalink
Let's just do the point for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Mytherin committed Jan 23, 2024
1 parent a29edc1 commit 5c94740
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
8 changes: 4 additions & 4 deletions test/all_pg_types.sql
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ insert into public_amounts values
CREATE TABLE big_generated_table AS SELECT * FROM generate_series(0,999999);

-- built-in geometric types
create table geometry(p point, l line, ls lseg, b box, pa path, poly polygon, c circle);
insert into geometry values ('(1,2)', '{1,2,3}', '(1,2,3,4)', '1,2,3,4', '1,2,3,4', '1,2,3,4,5,6,7,8', '1, 2, 3');
insert into geometry values ('(-1.5,-2.5)', '{-1.5,-2.5,-3.5}', '[(-1.5,-2.5),(-3.5,-4.5)]', '(-1.5,-2.5,-3.5,-4.5)', '(1,2),(3,4),(-1.5,-2.5)', '(-1.5,-2.5,-3.5,-4.5)', '<(1, 2), 3>');
insert into geometry values (NULL, NULL, NULL, NULL, NULL, NULL, NULL);
create table geometry(p point);
insert into geometry values ('(1,2)');
insert into geometry values ('(-1.5,-2.5)');
insert into geometry values (NULL);
9 changes: 4 additions & 5 deletions test/sql/storage/attach_geometry.test
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@ PRAGMA enable_verification
statement ok
ATTACH 'dbname=postgresscanner' AS s1 (TYPE POSTGRES)

query IIIIIII
query I
SELECT * FROM s1.geometry;
----
{'x': 1.0, 'y': 2.0} [1.0, 2.0, 3.0] [1.0, 2.0, 3.0, 4.0] [3.0, 4.0, 1.0, 2.0] [1.0, 2.0, 3.0, 4.0] [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0] [1.0, 2.0, 3.0]
{'x': -1.5, 'y': -2.5} [-1.5, -2.5, -3.5] [-1.5, -2.5, -3.5, -4.5] [-1.5, -2.5, -3.5, -4.5] [1.0, 2.0, 3.0, 4.0, -1.5, -2.5] [-1.5, -2.5, -3.5, -4.5] [1.0, 2.0, 3.0]
NULL NULL NULL NULL NULL NULL NULL

{'x': 1.0, 'y': 2.0}
{'x': -1.5, 'y': -2.5}
NULL

0 comments on commit 5c94740

Please sign in to comment.