I can understand an argument for consistency starting at the root requested
directory. However, I don't think it isn't crazy to start at the first
variable directory, because anything before that is providing information
back to users that they put into the query explicitly themselves.

On Mon, Oct 19, 2015 at 10:42 PM, Jacques Nadeau <[email protected]> wrote:

> The first variable directory gets treated as a dirX starting point I
> believe.
>
> Doesn't seem like a bug to me.
> On Oct 19, 2015 9:56 AM, "rahul challapalli" <[email protected]>
> wrote:
>
> > Drillers,
> >
> > The below result suggests that 'dir0' is inferred treating
> > '/drill/testdata/audits' as the root in the below query. Is this by
> design
> > that the first '*' gets treated as dir0?
> >
> > select * from dfs.`/drill/testdata/audits/*/audit/*.json` limit 1;
> >
> >
> +--------+--------+----------------------------------------+---------------+------+--------------------+----------------------+------------------------+-----------------+
> > |  dir0     |  dir1  |        timestamp                | operation  | uid
> >  |   ipAddress   | columnFamily  | columnQualifier  |    tableFid    |
> >
> >
> +----------+--------+--------------------------------------+---------------+------+--------------------+----------------------+------------------------+-----------------+
> > | node1  | audit  | 2015-06-06 10:41:19.248  | op1          | 0    |
> > 10.10.105.51  | CF1                | clq1                  | 123
> >   |
> >
> >
> +--------+--------+----------------------------------------+---------------+------+--------------------+----------------------+------------------------+-----------------+
> >
> > - Rahul
> >
>

Reply via email to