[
https://issues.jboss.org/browse/TEIID-2580?page=com.atlassian.jira.plugin...
]
Steven Hawkins resolved TEIID-2580.
-----------------------------------
Resolution: Done
Saxon does not mark elements as nillable on unvalidated documents, so the logic has to
directly check the attribute - however the projection filtering was removing the attribute
information, so the path map logic was updated as well.
xsi:nil is not honored by xmltable
----------------------------------
Key: TEIID-2580
URL:
https://issues.jboss.org/browse/TEIID-2580
Project: Teiid
Issue Type: Bug
Components: Query Engine
Affects Versions: 7.7
Reporter: Steven Hawkins
Assignee: Steven Hawkins
Fix For: 8.4.1, 8.5
If an element is returnable by xmltable, but marked as nil more than likely an exception
will be produced when attempting to convert the empty string value to a result.
For example:
{code}
select * from xmltable('/a/b' passing convert('<a
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><b
xsi:nil="true"/><b>1</b></a>', xml) columns val integer
path '.') as x
{code}
will error converting the first b element to an integer.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira