aokolnychyi commented on a change in pull request #2362:
URL: https://github.com/apache/iceberg/pull/2362#discussion_r616342162
##########
File path:
spark/src/main/java/org/apache/iceberg/actions/RewriteDataFilesAction.java
##########
@@ -59,10 +59,8 @@ protected FileIO fileIO() {
@Override
protected List<DataFile> rewriteDataForTasks(List<CombinedScanTask>
combinedScanTasks) {
JavaRDD<CombinedScanTask> taskRDD =
sparkContext.parallelize(combinedScanTasks, combinedScanTasks.size());
- Broadcast<FileIO> io = sparkContext.broadcast(fileIO());
- Broadcast<EncryptionManager> encryption =
sparkContext.broadcast(encryptionManager());
- RowDataRewriter rowDataRewriter =
- new RowDataRewriter(table(), spec(), caseSensitive(), io, encryption);
+ Broadcast<Table> tableBroadcast =
sparkContext.broadcast(SerializableTable.copyOf(table()));
+ RowDataRewriter rowDataRewriter = new RowDataRewriter(tableBroadcast,
spec(), caseSensitive());
Review comment:
Users can override the output spec by calling `outputSpecId`. While we
default the output spec to the current spec, no guarantee it is the one used to
write the data back.
--
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:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]