While querying directories on a file system, Drill expects all files within
it to be of the same format/type. Heterogenous types aren't supported
afaik.

I've seen a case where Drill would start off querying but would fail later.
And another case where it would fail right away. I think this is a known
limitation - If the first file read is of type JSON, all remainder of files
are expected to be of type JSON. I don't think the scheme being same itself
matters.

-Abhishek

On Saturday, October 17, 2015, Stefán Baxter <[email protected]>
wrote:

> Hi,
>
> I have a single directory structure containing both .avro and .json files.
> There content is the same and they use the same schema (Avro files
> explicitly and JSON files implicitly).
>
> When I query the directory Drill returns an error informing me that the
> Avro files can not be read as JSON files.
>
> I assumed that the file ending would dictate the reader but some other
> rules seem to apply.
>
> Can someone tell me if I need to do something special to make this work or
> if this a known limitation.
>
> Regards,
>  -Stefan
>

Reply via email to