[teiid-issues] [JBoss JIRA] (TEIID-3772) HBase - Phoenix returns more than one result for subquery which should return only one row
Juraj Duráni (JIRA)
issues at jboss.org
Mon Oct 19 05:08:00 EDT 2015
Juraj Duráni created TEIID-3772:
-----------------------------------
Summary: 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.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the teiid-issues
mailing list