sanel commented on a change in pull request #2085: URL: https://github.com/apache/drill/pull/2085#discussion_r434062419
########## File path: contrib/storage-http/src/main/java/org/apache/drill/exec/store/http/HttpScanBatchCreator.java ########## @@ -92,9 +92,16 @@ public void bind(ManagedScanFramework framework) { } @Override public ManagedReader<SchemaNegotiator> next() { + // Get the expected input type + String inputType = subScan.tableSpec().connectionConfig().inputType(); + // Only a single scan (in a single thread) if (count++ == 0) { - return new HttpBatchReader(subScan); + if (inputType.equalsIgnoreCase("csv")) { + return new HttpCSVBatchReader(subScan); + } else { + return new HttpBatchReader(subScan); + } Review comment: Github won't let me leave the comment for `else` block down below, but that `return null;` can go as default (without `else`). ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to 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