amansinha100 commented on a change in pull request #1466: DRILL-6381: Add support for index based planning and execution URL: https://github.com/apache/drill/pull/1466#discussion_r228342002
########## File path: exec/java-exec/src/main/java/org/apache/drill/exec/physical/impl/mergereceiver/MergingRecordBatch.java ########## @@ -535,7 +535,10 @@ public FragmentContext getContext() { @Override public BatchSchema getSchema() { - return outgoingContainer.getSchema(); + if (outgoingContainer.hasSchema()) { + return outgoingContainer.getSchema(); + } + return null; Review comment: The null value could occur for example when even though the `VectorContainer` has vectors but the operator has not yet called `buildSchema()` on the container. There's a `Preconditions.checkNotNull` in `VectorContainer.getSchema()`. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services