Update Overviews tests
This commit is contained in:
parent
5b47c51221
commit
d352e1c463
@ -8,12 +8,20 @@ SELECT _CDB_Aggregated_Attributes_Expression('base_bare_t'::regclass);
|
|||||||
SELECT _CDB_Aggregated_Attributes_Expression('base_bare_t'::regclass, 'tab');
|
SELECT _CDB_Aggregated_Attributes_Expression('base_bare_t'::regclass, 'tab');
|
||||||
|
|
||||||
SELECT CDB_CreateOverviews('base_bare_t'::regclass);
|
SELECT CDB_CreateOverviews('base_bare_t'::regclass);
|
||||||
|
SELECT count(*) FROM base_bare_t_ov5;
|
||||||
|
|
||||||
|
|
||||||
SELECT _CDB_Aggregable_Attributes_Expression('base_t'::regclass);
|
SELECT _CDB_Aggregable_Attributes_Expression('base_t'::regclass);
|
||||||
SELECT _CDB_Aggregated_Attributes_Expression('base_t'::regclass);
|
SELECT _CDB_Aggregated_Attributes_Expression('base_t'::regclass);
|
||||||
SELECT _CDB_Aggregated_Attributes_Expression('base_t'::regclass, 'tab');
|
SELECT _CDB_Aggregated_Attributes_Expression('base_t'::regclass, 'tab');
|
||||||
|
|
||||||
SELECT CDB_CreateOverviews('base_t'::regclass);
|
SELECT CDB_CreateOverviews('base_t'::regclass);
|
||||||
|
SELECT count(*) FROM base_t_ov5;
|
||||||
|
|
||||||
|
|
||||||
|
SELECT CDB_DropOverviews('base_bare_t'::regclass);
|
||||||
|
SELECT CDB_DropOverviews('base_t'::regclass);
|
||||||
|
SELECT count(*) FROM base_t_ov5;
|
||||||
|
|
||||||
DROP TABLE base_bare_t;
|
DROP TABLE base_bare_t;
|
||||||
DROP TABLE base_t;
|
DROP TABLE base_t;
|
||||||
|
@ -6,10 +6,17 @@ INSERT 0 1114
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
{base_bare_t_ov5,base_bare_t_ov3,base_bare_t_ov1}
|
{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
|
number,int_number,name,start
|
||||||
AVG(number)::double precision AS number,AVG(int_number)::integer AS int_number,''::text AS name,NULL::date AS 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,''::text AS name,NULL::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_ov3,base_t_ov1}
|
{base_t_ov5,base_t_ov4,base_t_ov3,base_t_ov2,base_t_ov1,base_t_ov0}
|
||||||
|
125
|
||||||
|
|
||||||
|
|
||||||
|
ERROR: relation "base_t_ov5" does not exist
|
||||||
|
LINE 1: SELECT count(*) FROM base_t_ov5;
|
||||||
|
^
|
||||||
DROP TABLE
|
DROP TABLE
|
||||||
DROP TABLE
|
DROP TABLE
|
||||||
|
Loading…
Reference in New Issue
Block a user