drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cliff Buchanan (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (DRILL-1130) Leading / in a select query should be rooted from the workspace rather than from the file system
Date Tue, 15 Jul 2014 21:39:06 GMT

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

Cliff Buchanan updated DRILL-1130:
----------------------------------

    Assignee: Steven Phillips

> Leading / in a select query should be rooted from the workspace rather than from the
file system
> ------------------------------------------------------------------------------------------------
>
>                 Key: DRILL-1130
>                 URL: https://issues.apache.org/jira/browse/DRILL-1130
>             Project: Apache Drill
>          Issue Type: Bug
>            Reporter: Norris Lee
>            Assignee: Steven Phillips
>
> Lets assume I have a file system with this structure: /opt/drill/touchstone/integer.json
> and I have a workspace "optdrill" rooted at /opt/drill
> If I execute
> {code}
> select * from `dfs.optdrill`.`touchstone/integer.json`
> or
> select * from `dfs.optdrill`.`./touchstone/integer.json`
> {code}
> then the query runs perfectly fine.
> However, if I lead it with just a slash;
> {code}
> select * from `dfs.optdrill`.`/touchstone/integer.json
> {code}
> Then the query fails because it is looking for the file "/touchstone/integer.json" rather
than "/opt/drill/touchstone/integer.json"
> The expectation is that it should always be rooted at the schema, which is consistent
with the show files fix in [DRILL-879|https://issues.apache.org/jira/browse/DRILL-879]



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

Mime
View raw message