[teiid-issues] [JBoss JIRA] (TEIID-3770) HBase - table's alias (... AS ...) is not "visible" in SELECT caluse in IN predicate

Steven Hawkins (JIRA) issues at jboss.org
Tue Oct 20 16:24:00 EDT 2015


    [ https://issues.jboss.org/browse/TEIID-3770?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13120206#comment-13120206 ] 

Steven Hawkins commented on TEIID-3770:
---------------------------------------

Definitely a bug on their end, but I didn't see an existing issue.  There is also no real rationale for it that I can see.  This specific query will work if the in is expressed as = ANY (...), but will fail with an npe if the column is charvalue/char(1).  I'll pursue that workaround just to narrow what is failing.

> HBase - table's alias (... AS ...) is not "visible" in SELECT caluse in IN predicate
> ------------------------------------------------------------------------------------
>
>                 Key: TEIID-3770
>                 URL: https://issues.jboss.org/browse/TEIID-3770
>             Project: Teiid
>          Issue Type: Bug
>    Affects Versions: 8.7.1.6_2
>            Reporter: Juraj Duráni
>            Assignee: Steven Hawkins
>
> Query:
> SELECT INTKEY, BIGDECIMALVALUE FROM BQT1.SMALLA AS A WHERE BIGDECIMALVALUE *IN (SELECT MAX(BIGDECIMALVALUE) FROM BQT1.SMALLA AS B WHERE _A_.INTKEY = B.INTKEY)* ORDER BY INTKEY
> It seems like bug in Phoenix driver.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)



More information about the teiid-issues mailing list