Bugs item #2863458, was opened at 2009-09-21 14:36
Message generated for change (Settings changed) made by boncz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2863458&group_id=56967
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: PFtijah
Group: Pathfinder "stable"
Status: Open
Resolution: Fixed
>Priority: 1
Private: No
Submitted By: Wouter Alink (vzzzbx)
Assigned to: Jan Flokstra (jflokstra)
Summary: PF/TIJAH: tokenize in a for-loop
Initial Comment:
Eugen detected the following: of the following 3 queries, the latter 2 seem to
fail (with the algebra frontend only).
Note that the latter 2 queries produce compile-time warnings such as "#warning:
pin count for variable a0002 below zero". It seems to be influenced by the use
of tijah:tokenize(), as I couldn't reproduce the error without using that
function.
$ cat tmp.xq
(: works :)
for $n in (1,2)
let $query := tijah:tokenize(fn:string("aap beer noot"))
let $len := fn:string-length(concat("vuur",$query))
return ($len)
<>
(: fails :)
for $n in (1,2)
let $query := tijah:tokenize(fn:string("aap beer noot"))
let $len := fn:string-length($query)
return ($len)
<>
(: fails :)
for $n in (1,2)
let $query := tijah:tokenize(fn:string("aap beer noot"))
let $len := fn:string-length(concat("vuur",$query))
return ($len,$query)
$ pf --help
Pathfinder XQuery Compiler ($Revision: 1.115 $, $Date: 2009/05/07 14:21:53 $)
(c) Database Systems Group, Eberhard Karls Universitaet Tuebingen
$ mclient -g -lxq -p50333 < tmp.xq
17,
17
13,
13
17,
"aap beer noot",
17,
"aap beer noot"
$ mclient -G -lxq -p50333 < tmp.xq
17,
17
#warning: pin count for variable a0002 below zero
#warning: pin count for variable a0001 below zero
MAPI = mone...@localhost:50333
QUERY = (: fails :)
ERROR = !ERROR: interpret: no matching MIL operator to 'leftjoin(void,
BAT[oid,oid])'.
!MAYBE YOU MEAN:
! leftjoin(BAT[any::1,any::2], BAT[any::2,any::3]) :
BAT[any::1,any::3]
! leftjoin(any::1, BAT[any::1,any::2]) : any::2
! leftjoin(oid, any::1) : any::1
! leftjoin(BAT[void,oid], any::1) : any::1
! leftjoin(BAT[oid,oid], any::1) : BAT[oid,any::1]
#warning: pin count for variable a0002 below zero
#warning: pin count for variable a0001 below zero
MAPI = mone...@localhost:50333
QUERY = (: fails :)
ERROR = !ERROR: interpret: no matching MIL operator to 'append(BAT[oid,oid],
BAT[oid,lng])'.
!MAYBE YOU MEAN:
! append(BAT[any::1,BAT], any) : BAT[any::1,BAT]
! append(BAT[void,any::1], any::1, bit) : BAT[void,any::1]
! append(BAT[void,any::1], any::1) : BAT[void,any::1]
! append(BAT[oid,any::1], any::1, bit) : BAT[oid,any::1]
! append(BAT[oid,any::1], any::1) : BAT[oid,any::1]
! append(BAT[void,any::1], BAT[oid,any::1], bit) :
BAT[void,any::1]
! append(BAT[void,any::1], BAT[oid,any::1]) : BAT[void,any::1]
! append(BAT[void,any::1], BAT[void,any::1], bit) :
BAT[void,any::1]
! append(BAT[void,any::1], BAT[void,any::1]) : BAT[void,any::1]
! append(BAT[oid,any::1], BAT[oid,any::1], bit) : BAT[oid,any::1]
! append(BAT[oid,any::1], BAT[oid,any::1]) : BAT[oid,any::1]
!ERROR: interpret_params: access(param 1): evaluation error.
----------------------------------------------------------------------
Comment By: Jan Flokstra (jflokstra)
Date: 2009-09-22 12:28
Message:
I fixed the bug. The pin count of the tokenize operation result bats was
always set to 1 but
should have been set to the number of times the operand is used by other
operations. The exampoles work on my machine now.
I added a testset in pftijah/Tests/test_comp_tokenize.
----------------------------------------------------------------------
Comment By: Wouter Alink (vzzzbx)
Date: 2009-09-21 14:38
Message:
Henning told me that I should assign it to jan flokstra... (hope that's ok
:)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2863458&group_id=56967
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs