Norris Lee created DRILL-1618:
---------------------------------

             Summary: 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


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)

Reply via email to