Changeset: 7fb1f81670d9 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=7fb1f81670d9
Modified Files:
        monetdb5/extras/rdf/rdfschema.c
Branch: rdf
Log Message:

Fix problem in generating ex-table with redundant nil tuples.


diffs (45 lines):

diff --git a/monetdb5/extras/rdf/rdfschema.c b/monetdb5/extras/rdf/rdfschema.c
--- a/monetdb5/extras/rdf/rdfschema.c
+++ b/monetdb5/extras/rdf/rdfschema.c
@@ -5835,16 +5835,18 @@ void fillMissingValueByNils(CStableStat*
        int tmpColExIdx; 
        oid k; 
 
-       printf("Fill nils for Table %d and prop %d from " BUNFMT " to " BUNFMT 
"\n", tblIdx, colIdx, from, to);
+       printf("Fill nils for Table %d  (type: %d)and prop %d from " BUNFMT " 
to " BUNFMT "\n", tblIdx, tblType, colIdx, from, to);
 
        tmpBat = cstablestat->lstcstable[tblIdx].colBats[colIdx];       
        //Fill all missing values from From to To
        if (to > (from + 1)){
                for(k = from -1; k < to - 1; k++){
+                       printf("Append null to main table: Col: %d \n", colIdx);
                        BUNappend(tmpBat, ATOMnilptr(tmpBat->ttype), TRUE);
                }
        }
        if (tblType != MAINTBL){
+               printf("Append null to not to-be-inserted col in main table: 
Col: %d \n", colIdx);
                BUNappend(tmpBat, ATOMnilptr(tmpBat->ttype), TRUE);
        }
        for (i = 0; i < (MULTIVALUES + 1); i++){
@@ -5854,15 +5856,19 @@ void fillMissingValueByNils(CStableStat*
                        //Fill all missing values from From to To
                        if (to > (from + 1)){
                                for(k = from -1; k < (to - 1); k++){
+                                       printf("Append null to ex table: Col: 
%d \n", tmpColExIdx);
                                        BUNappend(tmpBat, 
ATOMnilptr(tmpBat->ttype), TRUE);
                                }
                        }
 
-                       if (tblType != MAINTBL && tmpColExIdx != colIdxEx){
+                       if (tblType != MAINTBL){
+                               printf("Append null to not to-be-inserted col 
in ex table: Col: %d  (# colIdxEx = %d) \n", tmpColExIdx, colIdxEx);
                                BUNappend(tmpBat, ATOMnilptr(tmpBat->ttype), 
TRUE);
                        }
-                       else
+                       else if (tmpColExIdx != colIdxEx){
+                               printf("Append null to not to-be-inserted col 
in ex table: Col: %d (WHILE tblType = %d,  colIdxEx = %d) \n", tmpColExIdx, 
tblType, colIdxEx);
                                BUNappend(tmpBat, ATOMnilptr(tmpBat->ttype), 
TRUE);
+                       }
                }
                
        }
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to