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

ASF GitHub Bot commented on DRILL-399:
--------------------------------------

GitHub user vkorukanti opened a pull request:

    https://github.com/apache/incubator-drill/pull/54

    DRILL-399: Support USE SCHEMA.

    Also fixes bugs found in using default schema in queries.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/vkorukanti/incubator-drill DRILL-399

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-drill/pull/54.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #54
    
----
commit c54064d81b10c9cb2feffba77d36a2ca9edcf0a3
Author: vkorukanti <[email protected]>
Date:   2014-04-21T16:35:52Z

    DRILL-399: Support USE SCHEMA.
    Also fixes bugs found in using default schema in queries.

----


> Specifying schema=dfs and not specifying schema at query does not work
> ----------------------------------------------------------------------
>
>                 Key: DRILL-399
>                 URL: https://issues.apache.org/jira/browse/DRILL-399
>             Project: Apache Drill
>          Issue Type: Bug
>            Reporter: Ramana Inukonda Nagaraj
>
> Repro steps:
> Start sqlline 
> bin/sqlline -u jdbc:drill:schema=dfs -n admin -p admin
> 0: jdbc:drill:schema=dfs> select * from `/region.parquet`;
> Query failed: org.apache.drill.exec.rpc.RpcException: Remote failure while 
> running query.[error_id: "76bae1a1-3b86-4dc8-9cd4-6e42cb7fe900"
> endpoint {
>   address: "perfnode166.perf.lab"
>   user_port: 31010
>   control_port: 31011
>   data_port: 31012
> }
> error_type: 0
> message: "Failure while parsing sql. < ValidationException:[ 
> org.eigenbase.util.EigenbaseContextException: From line 1, column 15 to line 
> 1, column 31 ] < EigenbaseContextException:[ From line 1, column 15 to line 
> 1, column 31 ] < SqlValidatorException:[ Table \'/region.parquet\' not found 
> ]"
> ]
> Error: exception while executing query (state=,code=0)
> This works though.
> 0: jdbc:drill:schema=dfs> select * from dfs.`region.parquet`;
> Also, specifying cp as schema works.
> [root@perfnode166 drill]# bin/sqlline -u jdbc:drill:schema=cp -n admin -p 
> admin
> 0: jdbc:drill:schema=cp> select * from `employee.json`;



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to