[ 
https://issues.apache.org/jira/browse/PHOENIX-3267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15603422#comment-15603422
 ] 

Eric Lomore commented on PHOENIX-3267:
--------------------------------------

Did a scan over the files [~jamestaylor], and I found about 5 that look similar 
to this (null is one of the items under SELECT).

{code} conn.createStatement().executeQuery("SELECT pk1, pk2, v1, v2, NULL FROM 
T"); {code}

Should I create a quick pr with all of these cases?


> Replace use of SELECT null with CAST(null AS <type>)
> ----------------------------------------------------
>
>                 Key: PHOENIX-3267
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-3267
>             Project: Phoenix
>          Issue Type: Sub-task
>            Reporter: James Taylor
>            Assignee: Eric Lomore
>
> It appears that Calcite doesn't allow null as a SELECT expression. If this is 
> difficult to change, we can change our tests to cast null to a given data 
> type instead, like this: {{CAST(null AS VARCHAR)}}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to