Update of /cvsroot/monetdb/pathfinder/modules/pftijah
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv6198

Modified Files:
      Tag: XQuery_0-18
        pftijah.mx 
Log Message:
* Established that the ssort() causes the Itanium troubles. The implementation
  with sort() worked correct Saturdaynight. Resetting the sort()'s to ssort()'s
  again. 
  In case of failure I will now print the ssort() input bat and its properties.
  After that I think a gdk hacker should have a look at the problem.



Index: pftijah.mx
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/modules/pftijah/pftijah.mx,v
retrieving revision 1.134.2.7
retrieving revision 1.134.2.8
diff -u -d -r1.134.2.7 -r1.134.2.8
--- pftijah.mx  9 Jun 2007 08:12:05 -0000       1.134.2.7
+++ pftijah.mx  10 Jun 2007 17:10:48 -0000      1.134.2.8
@@ -93,7 +93,7 @@
                       : BAT[void,oid] = CMDpf2tijah_node;
  "Translate Pathfinder node sequence to tijah node sequence"
 
-.COMMAND offsetindex( BAT[void,oid] offset_tid, int res_size)
+.COMMAND offsetindex( BAT[void,oid] offset_tid, int res_size,BAT[oid,oid] 
moat, BAT[str,str] moat_info)
                : BAT[void,oid] = CMDoffsetindex;
 
 "PARAMETERS:
@@ -3187,9 +3187,8 @@
                var tmp := tids.kdiff(bat("tj_" + ftiName + "_pfpre"));
                # BUG:1732596: possible cause(1) here:
                # tmp is a BAT[oid,oid]
-                # tmp := tmp.reverse().ssort(); ORIGINAL
-                tmp := tmp.reverse().sort();
-               var termindex := tmp.hmark([EMAIL 
PROTECTED]).offsetindex(bat(_tj_TermBat(ftiName)).count() + 1);
+                tmp := tmp.reverse().ssort();
+               var termindex := tmp.hmark([EMAIL 
PROTECTED]).offsetindex(bat(_tj_TermBat(ftiName)).count() + 1,tmp,tmp.info());
                var terms := tmp.tmark([EMAIL PROTECTED]);
                # create _TermIndex and _Terms here
                termindex.persists(true).bbpname("tj_" + ftiName + 
"_TermIndex");
@@ -3207,9 +3206,8 @@
                tmp := tids.semijoin(bat("tj_" + ftiName + "_pfpre"));
                # BUG:1732596: possible cause(2) here:
                # tmp is a BAT[oid,oid]
-                # tmp := tmp.reverse().ssort(); ORIGINAL
-                tmp := tmp.reverse().sort();
-               var tagindex := tmp.hmark([EMAIL 
PROTECTED]).offsetindex(bat(_tj_TagBat(ftiName)).count() + 1);
+                tmp := tmp.reverse().ssort();
+               var tagindex := tmp.hmark([EMAIL 
PROTECTED]).offsetindex(bat(_tj_TagBat(ftiName)).count() + 1,tmp,tmp.info());
                var tags := tmp.tmark([EMAIL PROTECTED]);
                # create _Tags and _Tagindex here
                tagindex.persists(true).bbpname("tj_" + ftiName + "_TagIndex");
@@ -3742,7 +3740,7 @@
         return GDK_SUCCEED;
 }
 
-int CMDoffsetindex ( BAT** result, BAT* tid, int* res_size )
+int CMDoffsetindex ( BAT** result, BAT* tid, int* res_size , BAT* moat, BAT* 
moat_info)
 {
        char *name = "TJoffsetindex";
        BAT *res = NULL;
@@ -3759,6 +3757,10 @@
                /* temporary  print a little bit extra output for debugging */
                stream_printf(GDKerr,"!ERROR:%s: 
batordered()=%d\n",name,(int)BATtordered(tid));
                BATprintf(GDKerr,tid);
+               stream_printf(GDKerr,"!ERROR:%s: MOAT =\n",name);
+               BATprintf(GDKerr,moat);
+               stream_printf(GDKerr,"!ERROR:%s: MOAT.info() =\n",name);
+               BATprintf(GDKerr,moat_info);
                /* end of extra output */
                GDKerror("%s: index-bat must be ordered on tail.\n", name);
                return GDK_FAIL;


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins

Reply via email to