You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2021/09/24 22:21:14 UTC
[GitHub] [iceberg] rdblue commented on a change in pull request #3171: Spark: Migrate to new data writers in SparkWrite
rdblue commented on a change in pull request #3171:
URL: https://github.com/apache/iceberg/pull/3171#discussion_r715932276
##########
File path: spark3/src/main/java/org/apache/iceberg/spark/source/SparkWrite.java
##########
@@ -538,68 +543,127 @@ protected WriterFactory(Broadcast<Table> tableBroadcast, FileFormat format, long
@Override
public DataWriter<InternalRow> createWriter(int partitionId, long taskId, long epochId) {
Table table = tableBroadcast.value();
-
- OutputFileFactory fileFactory = OutputFileFactory.builderFor(table, partitionId, taskId).format(format).build();
- SparkAppenderFactory appenderFactory = SparkAppenderFactory.builderFor(table, writeSchema, dsSchema).build();
-
PartitionSpec spec = table.spec();
FileIO io = table.io();
+ OutputFileFactory fileFactory = OutputFileFactory.builderFor(table, partitionId, taskId)
+ .format(format)
+ .build();
+ SparkFileWriterFactory writerFactory = SparkFileWriterFactory.builderFor(table)
Review comment:
Does this need to be created each time we create a writer? It might not matter if we only create one per task since there's nothing to share?
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org