pvary commented on code in PR #12366:
URL: https://github.com/apache/iceberg/pull/12366#discussion_r1967206647
##########
data/src/main/java/org/apache/iceberg/data/GenericAppenderFactory.java:
##########
@@ -44,41 +46,85 @@
/** Factory to create a new {@link FileAppender} to write {@link Record}s. */
public class GenericAppenderFactory implements FileAppenderFactory<Record> {
-
+ private final Table table;
private final Schema schema;
private final PartitionSpec spec;
private final int[] equalityFieldIds;
private final Schema eqDeleteRowSchema;
private final Schema posDeleteRowSchema;
- private final Map<String, String> config = Maps.newHashMap();
+ private final Map<String, String> config;
+
+ private static final String WRITE_METRICS_PREFIX = "write.metadata.metrics.";
+ @Deprecated
Review Comment:
Why do we deprecate these?
##########
data/src/main/java/org/apache/iceberg/data/GenericAppenderFactory.java:
##########
@@ -44,41 +46,85 @@
/** Factory to create a new {@link FileAppender} to write {@link Record}s. */
public class GenericAppenderFactory implements FileAppenderFactory<Record> {
-
+ private final Table table;
private final Schema schema;
private final PartitionSpec spec;
private final int[] equalityFieldIds;
private final Schema eqDeleteRowSchema;
private final Schema posDeleteRowSchema;
- private final Map<String, String> config = Maps.newHashMap();
+ private final Map<String, String> config;
+
+ private static final String WRITE_METRICS_PREFIX = "write.metadata.metrics.";
+ @Deprecated
public GenericAppenderFactory(Schema schema) {
- this(schema, PartitionSpec.unpartitioned(), null, null, null);
+ this(schema, PartitionSpec.unpartitioned());
}
+ @Deprecated
Review Comment:
Why do we deprecate these?
--
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]