viirya commented on code in PR #11390:
URL: https://github.com/apache/iceberg/pull/11390#discussion_r1817444036
##########
spark/v3.5/spark/src/main/java/org/apache/iceberg/spark/source/BaseBatchReader.java:
##########
@@ -81,14 +84,15 @@ private CloseableIterable<ColumnarBatch> newParquetIterable(
SparkDeleteFilter deleteFilter) {
// get required schema if there are deletes
Schema requiredSchema = deleteFilter != null ?
deleteFilter.requiredSchema() : expectedSchema();
+ Schema vectorizationSchema = vectorizationSchema(deleteFilter);
return Parquet.read(inputFile)
.project(requiredSchema)
.split(start, length)
.createBatchedReaderFunc(
fileSchema ->
VectorizedSparkParquetReaders.buildReader(
- requiredSchema, fileSchema, idToConstant, deleteFilter))
+ vectorizationSchema, fileSchema, idToConstant,
deleteFilter))
Review Comment:
Is it just `expectedSchema`?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]