You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Jacques Nadeau (JIRA)" <ji...@apache.org> on 2014/12/28 22:08:16 UTC

[jira] [Updated] (DRILL-1618) Drill allows creation of tables/view with backslash even though its not queryable

     [ https://issues.apache.org/jira/browse/DRILL-1618?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Nadeau updated DRILL-1618:
----------------------------------
    Fix Version/s: Future

> Drill allows creation of tables/view with backslash even though its not queryable
> ---------------------------------------------------------------------------------
>
>                 Key: DRILL-1618
>                 URL: https://issues.apache.org/jira/browse/DRILL-1618
>             Project: Apache Drill
>          Issue Type: Bug
>            Reporter: Norris Lee
>            Priority: Minor
>             Fix For: Future
>
>
> I can create a view with a backslash in the name and it shows up in show files as well.
> {code}
> 0: jdbc:drill:zk=localhost:5181> create view `dfs.tests`.`test\_backslash` as select * from `hive43.default`.`emp`;
> +------------+------------+
> |     ok     |  summary   |
> +------------+------------+
> | true       | View 'test\_backslash' created successfully in 'dfs.tests' schema |
> +------------+------------+
> 1 row selected (0.296 seconds)
> {code}
> But when I try and query it, it doesn't work and the backslash seems to be removed:
> {code}
> 0: jdbc:drill:zk=localhost:5181> select * from `dfs.tests`.`test\_backslash`;
> Query failed: Failure while parsing sql. Table 'dfs.tests.test_backslash' not found [02011f5b-6a33-440b-aae1-c72be2762d2c]
> Error: exception while executing query: Failure while trying to get next result batch. (state=,code=0)
> {code}
> I would expect Drill to disallow the creation of such tables/views.



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