Try-Catch and Lazy-Evaluation: trycatch_doc_example_06.xq

Bug #866138 reported by Tim Kraska
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
New
Medium
Markos Zaharioudakis

Bug Description

Query trycatch_doc_example_06.xq does not run if the lazy evaluation of TempSequences for the LET is turned on.

The reason is, that for Try-Catch all variables have to be evaluated right before the return-clause. Therefore the compiler needs to set the flag eager-materialize to the LET-Clause.

To reproduce the error, switch the Lazy-Temp-Sequence in the store on (line 798 in simple_store.cpp)

Tags: optimizer
Revision history for this message
dflorescu (dflorescu-9) wrote :

Markos, Matthias,

this bug should not be postponed. This made sense a year and a half earlier,
but I think we should solve it now for 2.0.

Revision history for this message
Sorin Marian Nasoi (sorin.marian.nasoi) wrote :

Marked with Resolution = None at Dana's request.

Changed in zorba:
assignee: Markos Zaharioudakis (markos-za) → Sorin Marian Nasoi (sorin.marian.nasoi)
assignee: Sorin Marian Nasoi (sorin.marian.nasoi) → Markos Zaharioudakis (markos-za)
Changed in zorba:
importance: High → Medium
Chris Hillery (ceejatec)
tags: removed: v1.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.