Changeset: 12daba096f46 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/12daba096f46
Modified Files:
        sql/server/rel_statistics.c
Branch: properties
Log Message:

Propagate number of uniques over joins (my mistake)


diffs (19 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
@@ -155,13 +155,8 @@ rel_propagate_column_ref_statistics(mvc 
                                set_has_nil(e);
                        if (!is_outerjoin(rel->op) && found_without_semantics) 
/* at an outer join, null values pass */
                                set_has_no_nil(e);
-                       if (is_join(rel->op)) {
-                               prop *est;
-                               if (is_unique(e) && !still_unique)
-                                       set_not_unique(e);
-                               if ((est = find_prop(e->p, PROP_NUNIQUES))) /* 
remove unique estimation after a join */
-                                       e->p = prop_remove(e->p, est);
-                       }
+                       if (is_join(rel->op) && is_unique(e) && !still_unique)
+                               set_not_unique(e);
                        return e;
                }
                case op_table:
_______________________________________________
checkin-list mailing list -- checkin-list@monetdb.org
To unsubscribe send an email to checkin-list-le...@monetdb.org

Reply via email to