Changeset: 1b3be1fb1e3c for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/1b3be1fb1e3c
Modified Files:
sql/server/rel_statistics.c
Branch: properties
Log Message:
Don't execute binary comparison cases on range cases
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
@@ -456,7 +456,7 @@ rel_prune_predicates(visitor *v, sql_rel
lval_min && lval_max && rval_min &&
rval_max && fval_min && fval_max &&
(e->anti ? ((lower == cmp_gte ?
atom_cmp(rval_min, lval_max) > 0 : atom_cmp(rval_min, lval_max) >= 0) ||
(higher == cmp_lte ? atom_cmp(lval_min, fval_max) > 0 : atom_cmp(lval_min,
fval_max) >= 0) || atom_cmp(rval_min, fval_max) > 0) :
((lower == cmp_gte ? atom_cmp(lval_min,
rval_max) >= 0 : atom_cmp(lval_min, rval_max) > 0) && (higher == cmp_lte ?
atom_cmp(fval_min, lval_max) >= 0 : atom_cmp(fval_min, lval_max) > 0)));
- } else {
+ } else if (!fe) {
switch (e->flag) {
case cmp_equal:
if (lval_min && lval_max && rval_min &&
rval_max)
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list