You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Victoria Markman (JIRA)" <ji...@apache.org> on 2015/04/25 00:18:38 UTC
[jira] [Closed] (DRILL-1867) Case sensitivity of query identifiers
is inconsistent
[ https://issues.apache.org/jira/browse/DRILL-1867?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Victoria Markman closed DRILL-1867.
-----------------------------------
> Case sensitivity of query identifiers is inconsistent
> -----------------------------------------------------
>
> Key: DRILL-1867
> URL: https://issues.apache.org/jira/browse/DRILL-1867
> Project: Apache Drill
> Issue Type: Bug
> Components: SQL Parser
> Affects Versions: 0.7.0
> Reporter: Victoria Markman
> Assignee: Jinfeng Ni
> Fix For: 0.8.0
>
> Attachments: 0001-DRILL-1867-Fix-case-insensitive-matching-for-subquer.patch
>
>
> git.commit.id.abbrev=c65928f
> In this query it looks like identifies are case insensitive.
> {code}
> 0: jdbc:drill:schema=dfs> select Eventdate from `test.json` where eventdate is not null;
> +------------+
> | Eventdate |
> +------------+
> | 2014-01-01 |
> | 2014-01-01 |
> | 2014-02-01 |
> +------------+
> 3 rows selected (0.107 seconds)
> {code}
> However, in subquery, they suddenly change the behavior and become case sensitive.
> {code}
> 0: jdbc:drill:schema=dfs> select EVENTDATE from ( select Eventdate from `test.json` where eventdate is not null );
> Query failed: Query failed: Failure validating SQL. org.eigenbase.util.EigenbaseContextException: From line 1, column 8 to line 1, column 16: Column 'EVENTDATE' not found in any table
> Error: exception while executing query: Failure while executing query. (state=,code=0)
> {code}
> This happens not only when querying unstructured data, but Drill tables as well:
> {code}
> 0: jdbc:drill:schema=dfs> select Customerid from test where customerid = 100;
> +------------+
> | Customerid |
> +------------+
> | 100 |
> +------------+
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)