Changeset: 95799d87bf9a for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=95799d87bf9a
Modified Files:
        monetdb5/optimizer/opt_mergetable.c
Branch: Jun2020
Log Message:

handle extend.project in mergetable optimizer


diffs (23 lines):

diff --git a/monetdb5/optimizer/opt_mergetable.c 
b/monetdb5/optimizer/opt_mergetable.c
--- a/monetdb5/optimizer/opt_mergetable.c
+++ b/monetdb5/optimizer/opt_mergetable.c
@@ -2205,6 +2205,19 @@ OPTmergetableImplementation(Client cntxt
                        }
                        continue;
                }
+               if (match == 1 && getModuleId(p) == algebraRef &&
+                   getFunctionId(p) == projectRef &&
+                  (m=is_a_mat(getArg(p,1), &ml)) >= 0 &&
+                  (ml.v[m].type == mat_ext)) {
+                       assert(ml.v[m].pushed);
+                       cp = copyInstruction(p);
+                       if(!cp) {
+                               msg = 
createException(MAL,"optimizer.mergetable",SQLSTATE(HY013) MAL_MALLOC_FAIL);
+                               goto cleanup;
+                       }
+                       pushInstruction(mb, cp);
+                       continue;
+               }
 
                /* Handle cases of slice.projection */
                if (match == 2 && getModuleId(p) == algebraRef &&
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to