stevenzwu commented on code in PR #6313: URL: https://github.com/apache/iceberg/pull/6313#discussion_r1046609770
########## flink/v1.16/flink/src/main/java/org/apache/iceberg/flink/sink/FlinkAppenderFactory.java: ########## @@ -99,7 +122,8 @@ private RowType lazyPosDeleteFlinkSchema() { @Override public FileAppender<RowData> newAppender(OutputFile outputFile, FileFormat format) { - MetricsConfig metricsConfig = MetricsConfig.fromProperties(props); + MetricsConfig metricsConfig = + table != null ? MetricsConfig.forTable(table) : MetricsConfig.fromProperties(props); Review Comment: `MetricsConfig.fromProperties` is deprecated. I am wondering if we should just ensure `table` is never null? That would require changing the current 2 constructors (technically breaking) without adding a new constructor. but this class should be an `@Internal` class. what do you think? @pvary @hililiwei @chenjunjiedada -- 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-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org