[
https://issues.apache.org/jira/browse/DRILL-411?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13942356#comment-13942356
]
Venki Korukanti commented on DRILL-411:
---------------------------------------
Value type in RexLiteral is NlsString when type is CHAR or VARCHAR, but we try
to typecast it to "String". Attached a patch with unittest.
> select "string" does not work
> -----------------------------
>
> Key: DRILL-411
> URL: https://issues.apache.org/jira/browse/DRILL-411
> Project: Apache Drill
> Issue Type: Bug
> Reporter: Ramana Inukonda Nagaraj
> Assignee: Venki Korukanti
> Attachments: DRILL-411.patch
>
>
> select "drill" from dfs.drillTestDir.`nation`;
> Also
> select 'drill' from dfs.drillTestDir.`nation`;
> The second query which I presumed to be the correct way to use this returned
> error_type: 0
> message: "Failure while parsing sql. < ClassCastException:[
> org.eigenbase.util.NlsString cannot be cast to java.lang.String ]"
> ]
> Error: exception while executing query (state=,code=0)
--
This message was sent by Atlassian JIRA
(v6.2#6252)