JSONiq: cannot create mixed JDM/XDM sequence

Bug #924595 reported by Chris Hillery
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
Fix Released
Medium
Markos Zaharioudakis

Bug Description

zorba -q 'let $foo := ({"foo":1},<xml/>) return 1'

results in

Zorba error [zerr:ZXQP0002]: "false": assertion failed; raised at /home/ceej/zo/src/src/types/typemanagerimpl.cpp:943

(This isn't an issue with serialization, as the query isn't attempting to serialize a mixed sequence.)

Matthias sez:

"The assertion is triggered because STRUCTURED_ITEM_KIND is not handled in the switch in TypeManagerImpl::create_type. It's happening in the rewriter, so executing the query with --optimization-level O0 should work."

And indeed, the above query works with O0.

Chris Hillery (ceejatec)
Changed in zorba:
milestone: none → 2.2
assignee: nobody → Markos Zaharioudakis (markos-za)
importance: Undecided → Medium
Changed in zorba:
status: New → Fix Committed
Changed in zorba:
status: Fix Committed → Fix Released
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.