oakproject / paxquery

XQuery processor on top of Apache Flink.
3 stars 2 forks source link

Optional fields result in shorter records, which produces exceptions (extractor) #9

Open jamnaranjo opened 10 years ago

jamnaranjo commented 10 years ago

Assume the query: let $ic := collection("file:///Users/jalvaro/XML/XMarkDocs/XMarkClosedAuctions/file0.xml")//closed_auction let $s := $ic//seller[@person != "person12"] return $s

where $s is nested and optional. Those records for which $s contains a value have 3 fields, but those for which $s does not contain anything have 2 fields, hance resulting in exceptions when constructing the result. Instead, they should contain 3 fields, with the non-valued fields should contain an empty string.

The extractor should be investigated.