xmlagg should return null rather than empty over no values
----------------------------------------------------------
Key: TEIID-5570
URL:
https://issues.jboss.org/browse/TEIID-5570
Project: Teiid
Issue Type: Bug
Reporter: Steven Hawkins
Assignee: Steven Hawkins
Priority: Major
For example the query:
{code}
select xmlagg(col) from (select cast('<a></a>' as xml) as col, 1
col1) x where col1 = 2
{code}
or
{code}
select xmlagg(col) from (select cast(null as xml) as col) x
{code}
Should return null rather than an empty document.