8000 Bugfix. Normalize cardinality error. · postgrespro/aqo@c538b70 · GitHub
[go: up one dir, main page]

Skip to content

Commit c538b70

Browse files
committed
Bugfix. Normalize cardinality error.
1 parent 09a59c9 commit c538b70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

postprocessing.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ learnOnPlanState(PlanState *p, void *context)
435435
/* Exclude "not executed" nodes from error calculation to reduce fluctuations. */
436436
if (!notExecuted)
437437
{
438-
cardinality_sum_errors += fabs(predicted - learn_rows);
438+
cardinality_sum_errors += fabs(log(predicted) - log(learn_rows));
439439
cardinality_num_objects += 1;
440440
}
441441

0 commit comments

Comments
 (0)
0