Changeset: 14ece930a354 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=14ece930a354
Modified Files:
        sql/backends/monet5/rel_bin.c
Branch: in-value-list
Log Message:

Only do order if an intersect is performed. Only remove nulls if they are 
actually present.


diffs (16 lines):

diff --git a/sql/backends/monet5/rel_bin.c b/sql/backends/monet5/rel_bin.c
--- a/sql/backends/monet5/rel_bin.c
+++ b/sql/backends/monet5/rel_bin.c
@@ -350,7 +350,11 @@ handle_in_exps(backend *be, sql_exp *ce,
                
                // The actual in-value-list should not contain duplicates to 
ensure that final join results are unique.
                s = distinct_value_list(be, nl, &last_null_value);
-               s = stmt_project(be, stmt_selectnonil(be, s, NULL), s); // The 
actual in-value-list should not contain null values.
+
+               if (last_null_value) {
+                       // The actual in-value-list should not contain null 
values.
+                       s = stmt_project(be, stmt_selectnonil(be, s, NULL), s);
+               }
 
                s = stmt_join(be, c, s, in, cmp_left);
                s = stmt_result(be, s, 0);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to