Github user sudheeshkatkam commented on the pull request:
https://github.com/apache/drill/pull/193#issuecomment-152034356
Also, on the execution side, I was actually hitting
[DRILL-2288](https://issues.apache.org/jira/browse/DRILL-2288), where sending
exactly one batch with schema and without data is not handled correctly by
various RecordBatches. With a fix for that issue, we could add further
optimization for schemaed tables (i.e. add the previous implementation) with
this implementation as the fallback.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---