rdblue commented on a change in pull request #2877:
URL: https://github.com/apache/iceberg/pull/2877#discussion_r681323342
##########
File path:
spark/src/main/java/org/apache/iceberg/spark/source/RowDataReader.java
##########
@@ -186,28 +186,27 @@ protected Schema tableSchema() {
}
private CloseableIterable<InternalRow> newDataIterable(DataTask task, Schema
readSchema) {
- StructInternalRow row = new StructInternalRow(tableSchema.asStruct());
+ StructInternalRow row = new StructInternalRow(readSchema.asStruct());
CloseableIterable<InternalRow> asSparkRows = CloseableIterable.transform(
task.asDataTask().rows(), row::setStruct);
- return CloseableIterable.transform(
- asSparkRows, APPLY_PROJECTION.bind(projection(readSchema,
tableSchema))::invoke);
+ return asSparkRows;
Review comment:
I think you can also remove `APPLY_PROJECTION`. This is the only place
it is used.
--
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]