Changeset: 8d21b53d98b9 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/8d21b53d98b9
Modified Files:
sql/server/rel_statistics.c
Branch: properties
Log Message:
Check column expressions only
diffs (12 lines):
diff --git a/sql/server/rel_statistics.c b/sql/server/rel_statistics.c
--- a/sql/server/rel_statistics.c
+++ b/sql/server/rel_statistics.c
@@ -632,7 +632,7 @@ rel_calc_nuniques(sql_rel *l, list *exps
if ((p = find_prop(e->p, PROP_NUNIQUES))) {
nuniques = MAX(nuniques, (BUN) p->value.dval);
- } else if (rel_find_exp_and_corresponding_rel(l, e,
false, &bt, NULL) && bt && (p = find_prop(bt->p, PROP_COUNT))) {
+ } else if (e->type == e_column &&
rel_find_exp_and_corresponding_rel(l, e, false, &bt, NULL) && bt && (p =
find_prop(bt->p, PROP_COUNT))) {
nuniques = MAX(nuniques, p->value.lval);
} else {
nuniques = BUN_NONE;
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]