Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit c30ca2b

Browse files
author
Alena Rybakina
committed
Rename guc, which connected with setting minimum number of neighbours for predicting
and add more understandable explanations of guc.
1 parent 3027394 commit c30ca2b

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

aqo.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,8 @@ _PG_init(void)
288288
NULL
289289
);
290290

291-
DefineCustomIntVariable("aqo.k_neighbors_threshold",
292-
"Set the threshold of number of neighbors for predicting.",
291+
DefineCustomIntVariable("aqo.min_neighbors_for_predicting",
292+
"Set how many neighbors the cardinality prediction will be calculated",
293293
NULL,
294294
&aqo_k,
295295
3,
@@ -301,7 +301,7 @@ _PG_init(void)
301301
NULL);
302302

303303
DefineCustomBoolVariable("aqo.predict_with_few_neighbors",
304-
"Make prediction with less neighbors than we should have.",
304+
"Establish the ability to make predictions with fewer neighbors than were found.",
305305
NULL,
306306
&aqo_predict_with_few_neighbors,
307307
true,

expected/look_a_like.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ SET aqo.join_threshold = 0;
33
SET aqo.mode = 'learn';
44
SET aqo.show_details = 'on';
55
set aqo.show_hash = 'off';
6-
SET aqo.k_neighbors_threshold = 1;
6+
SET aqo.min_neighbors_for_predicting = 1;
77
SET enable_nestloop = 'off';
88
SET enable_mergejoin = 'off';
99
SET enable_material = 'off';

sql/look_a_like.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ SET aqo.join_threshold = 0;
33
SET aqo.mode = 'learn';
44
SET aqo.show_details = 'on';
55
set aqo.show_hash = 'off';
6-
SET aqo.k_neighbors_threshold = 1;
6+
SET aqo.min_neighbors_for_predicting = 1;
77
SET enable_nestloop = 'off';
88
SET enable_mergejoin = 'off';
99
SET enable_material = 'off';

0 commit comments

Comments
 (0)