Skip to content

Commit da0d648

Browse files
Artem FadeevDaniil Anisimov
Artem Fadeev
authored and
Daniil Anisimov
committed
Fix Materialize node fss computing.
1 parent eff2fec commit da0d648

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

expected/aqo_query_stat.out

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ SELECT count(*) FROM A JOIN B ON (A.x > B.y) WHERE A.x > 19 AND B.y < 9;
6868
SELECT round_array(cardinality_error_with_aqo) AS error_aqo, round_array(cardinality_error_without_aqo) AS error_no_aqo, executions_with_aqo, executions_without_aqo FROM aqo_query_stat;
6969
error_aqo | error_no_aqo | executions_with_aqo | executions_without_aqo
7070
--------------------+--------------+---------------------+------------------------
71-
{0.22,0.362,0.398} | {0.392,0.21} | 3 | 2
71+
{0.22,0.243,0.416} | {0.392,0.21} | 3 | 2
7272
(1 row)
7373

7474
SELECT true AS success from aqo_reset();
@@ -141,9 +141,9 @@ SELECT count(*) FROM A JOIN B ON (A.x > B.y) WHERE A.x > 18 AND B.y < 8;
141141
(1 row)
142142

143143
SELECT round_array(cardinality_error_with_aqo) AS error_aqo, round_array(cardinality_error_without_aqo) AS error_no_aqo, executions_with_aqo, executions_without_aqo FROM aqo_query_stat;
144-
error_aqo | error_no_aqo | executions_with_aqo | executions_without_aqo
145-
---------------------------------------------------------------------+----------------------------------------------------------+---------------------+------------------------
146-
{5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,0.392,0.344,0.34,0.362} | {2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,0.218} | 104 | 51
144+
error_aqo | error_no_aqo | executions_with_aqo | executions_without_aqo
145+
----------------------------------------------------------------------+----------------------------------------------------------+---------------------+------------------------
146+
{5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,0.392,0.134,0.173,0.243} | {2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,0.218} | 104 | 51
147147
(1 row)
148148

149149
SET aqo.mode TO DEFAULT;

expected/eclasses.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ WHERE str NOT LIKE '%Memory%';
377377
SELECT count(*) FROM aqo_data;
378378
count
379379
-------
380-
13
380+
10
381381
(1 row)
382382

383383
SELECT true AS success FROM aqo_reset();

path_utils.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -622,6 +622,7 @@ is_appropriate_path(Path *path)
622622
{
623623
case T_SortPath:
624624
case T_IncrementalSortPath:
625+
case T_MaterialPath:
625626
case T_GatherPath:
626627
case T_GatherMergePath:
627628
appropriate = false;

0 commit comments

Comments
 (0)