[Monetdb-developers] debugging question

Stefan Manegold Stefan.Manegold at cwi.nl
Fri Apr 20 19:19:39 CEST 2007


On Fri, Apr 20, 2007 at 02:12:48PM +0200, Henning Rode wrote:
> hej stefan,
> 
> thanks for the help. it was indeed check 14 of the BATpropcheck that
> goes wrong here, but we have no idea what causes the failure...

well, I guess this calls for a gdb session: break on BATouterjoin and
single-step through the code ...

[...]

> - the problem happens during the implicit translation of an existence
> predicate to a boolean value:
> 
> whereas the following causes the problem:
> 
> let $opt := <TijahOptions returnNumber="1000" ir-model="LMS"/>
> let $query := concat("//DOC[about(.,",tijah:tokenize("CVS"),")]")
> for $doc in tijah:query($query, $opt)
> where $doc//candidate
> return $doc
> 
> this slightly changed query does it well:
> 
> let $opt := <TijahOptions returnNumber="1000" ir-model="LMS"/>
> let $query := concat("//DOC[about(.,",tijah:tokenize("CVS"),")]")
> for $doc in tijah:query($query, $opt)
> where count($doc//candidate) > 0
> return $doc

could you please try, whether making the exist explicite by using
fn:exists() does work well, or not?
i.e.,

  let $opt := <TijahOptions returnNumber="1000" ir-model="LMS"/>
  let $query := concat("//DOC[about(.,",tijah:tokenize("CVS"),")]")
  for $doc in tijah:query($query, $opt)
  where exists($doc//candidate)
  return $doc


> - it looks like a typical bug report, however, it seems also to some
> extend data bound. the same error does not occur in all my query topics,
> but only for some. and the amount of data i use, is too large for a bug
> report.

and you classify, which query topics do trigger the bug and which don't?

[...]

Stefan


-- 
| Dr. Stefan Manegold | mailto:Stefan.Manegold at cwi.nl |
| CWI,  P.O.Box 94079 | http://www.cwi.nl/~manegold/  |
| 1090 GB Amsterdam   | Tel.: +31 (20) 592-4212       |
| The Netherlands     | Fax : +31 (20) 592-4312       |




More information about the developers-list mailing list