XML Choice is not being evaluated as expected
---------------------------------------------
Key: TEIID-3244
URL:
https://issues.jboss.org/browse/TEIID-3244
Project: Teiid
Issue Type: Bug
Components: Query Engine
Reporter: Debbie Steigner
Priority: Minor
We have an XML View model, built on a schema that includes choice nodes. We've used
the choice editor to define a default choice; however, no data comes back for any of these
choices, despite the fact that data does exist.
It appears that MMX is not executing the queries under the default choice nodes.
As a second test, we tried setting criteria that would always be true. Still, the choice
nodes were not executed.
Finally, we tried setting criteria that would never be true, and told the choice editor
to throw an exception if the criteria was not met. No exception was thrown. This seems to
indicate that MMX simply isn't evaluating this part of the document.
Finally, I have an theory about what could be the source of the problem, based on what I
did differently during the rebuild. If you click on the "Subject" mapping class,
notice that "choice" gets highlighted. In my rebuild, when I click on
"Subject", the "category" gets highlighted, but the choice above it
does not. The behavior is problematic in the first case, but works as expected in the
second case.