]
RH Bugzilla Integration updated TEIID-3772:
-------------------------------------------
Bugzilla References:
HBase - Phoenix returns more than one result for subquery which
should return only one row
-------------------------------------------------------------------------------------------
Key: TEIID-3772
URL:
https://issues.jboss.org/browse/TEIID-3772
Project: Teiid
Issue Type: Bug
Affects Versions: 8.7.1.6_2
Reporter: Juraj DurĂ¡ni
Assignee: Steven Hawkins
Priority: Minor
Query:
SELECT intkey FROM BQT1.SmallA AS A WHERE stringkey = (SELECT stringkey FROM BQT1.SmallA
AS B WHERE b.intnum = a.intnum) ORDER BY intkey
Source-specific query:
SELECT g_0.intkey AS c_0 FROM smalla AS g_0 WHERE g_0.stringkey = (SELECT g_1.stringkey
FROM smalla AS g_1 WHERE g_1.intnum = g_0.intnum) ORDER BY c_0
Subquery returns more than one row. Every value in IntNum is unique except 3 NULL values.
Changing where clause to: WHERE b.intnum is not null and b.intnum = a.intnum returns
correct result.
It seems like Phoenix bug. A note in the documentation could be enough.