rdblue commented on a change in pull request #1920:
URL: https://github.com/apache/iceberg/pull/1920#discussion_r542915921
##########
File path: mr/src/main/java/org/apache/iceberg/mr/InputFormatConfig.java
##########
@@ -85,6 +88,13 @@ public ConfigBuilder(Configuration conf) {
}
public Configuration conf() {
+ // Store the io and the current snapshot of the table in the
configuration which are needed for the split
+ // generation
+ Table table = Catalogs.loadTable(conf);
+ conf.set(InputFormatConfig.METADATA_LOCATION,
+ ((HasTableOperations)
table).operations().current().metadataFileLocation());
Review comment:
As I noted on a thread below, I think it is better to use `BaseTable`.
----------------------------------------------------------------
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]