Files
cartodb-postgresql/test/CDB_OverviewsTest_expect
Javier Goizueta 1ebaeb76ac Overload CDB_Overviews to accept either a single table or an array
The result of CDB_Overviews has been expandend with a base_table column
2016-01-26 10:39:26 +01:00

41 lines
1.3 KiB
Plaintext

SET
CREATE TABLE
INSERT 0 1114
CREATE TABLE
INSERT 0 1114
{base_bare_t_ov5,base_bare_t_ov4,base_bare_t_ov3,base_bare_t_ov2,base_bare_t_ov1,base_bare_t_ov0}
125
number,int_number,name,start
AVG(number)::double precision AS number,AVG(int_number)::integer AS int_number,CASE count(*) WHEN 1 THEN string_agg(name,'/') ELSE '*' END::text AS name,CASE count(*) WHEN 1 THEN MIN(start) ELSE NULL END::date AS start
AVG(tab.number)::double precision AS number,AVG(tab.int_number)::integer AS int_number,CASE count(*) WHEN 1 THEN string_agg(tab.name,'/') ELSE '*' END::text AS name,CASE count(*) WHEN 1 THEN MIN(tab.start) ELSE NULL END::date AS start
{base_t_ov5,base_t_ov4,base_t_ov3,base_t_ov2,base_t_ov1,base_t_ov0}
125
(base_t,0,base_t_ov0)
(base_t,1,base_t_ov1)
(base_t,2,base_t_ov2)
(base_t,3,base_t_ov3)
(base_t,4,base_t_ov4)
(base_t,5,base_t_ov5)
(base_bare_t,0,base_bare_t_ov0)
(base_bare_t,1,base_bare_t_ov1)
(base_bare_t,2,base_bare_t_ov2)
(base_bare_t,3,base_bare_t_ov3)
(base_bare_t,4,base_bare_t_ov4)
(base_bare_t,5,base_bare_t_ov5)
(base_t,0,base_t_ov0)
(base_t,1,base_t_ov1)
(base_t,2,base_t_ov2)
(base_t,3,base_t_ov3)
(base_t,4,base_t_ov4)
(base_t,5,base_t_ov5)
ERROR: relation "base_t_ov5" does not exist
LINE 1: SELECT count(*) FROM base_t_ov5;
^
DROP TABLE
DROP TABLE