ShreelekhyaG opened a new pull request #4226: URL: https://github.com/apache/carbondata/pull/4226
### Why is this PR needed? If `carbon.enable.vector.reader` is disabled and parquet/orc segments are added to carbon table. Then on query, it fails with `java.lang.ClassCastException: org.apache.spark.sql.vectorized.ColumnarBatch cannot be cast to org.apache.spark.sql.catalyst.InternalRow`. When vector reader property is disabled, while scanning `ColumnarBatchScan ` `supportBatch `would be overridden to false but external file format like `ParuetFileFormat ` `supportBatch `is not overriden and it takes default as true. ### What changes were proposed in this PR? Made changes to override `supportBatch `of external file formats based on `carbon.enable.vector.reader` property. ### Does this PR introduce any user interface change? - No ### Is any new testcase added? - Yes -- 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. To unsubscribe, e-mail: dev-unsubscr...@carbondata.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org