You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by "gong (via GitHub)" <gi...@apache.org> on 2023/03/28 09:25:00 UTC
[GitHub] [inlong] gong commented on a diff in pull request #7716: [INLONG-7715][Sort] Fix single table metric invalid
gong commented on code in PR #7716:
URL: https://github.com/apache/inlong/pull/7716#discussion_r1150294892
##########
inlong-sort/sort-connectors/iceberg/src/main/java/org/apache/inlong/sort/iceberg/sink/multiple/DynamicSchemaHandleOperator.java:
##########
@@ -252,7 +265,7 @@ private void handleDirtyData(Object dirtyData,
dirtySinkHelper.invoke(dirtyData, dirtyType, dirtyOptions.getLabels(), dirtyOptions.getLogTag(),
dirtyOptions.getIdentifier(), e);
}
- if (metricData != null) {
+ if (metricData != null && needDirtyMetric) {
metricData.outputDirtyMetricsWithEstimate(tableId.namespace().toString(), null, tableId.name(), dirtyData);
Review Comment:
Why not remove `metricData.outputDirtyMetricsWithEstimate(tableId.namespace().toString(), null, tableId.name(), dirtyData);`. DynamicSchemaHandleOperator pass dirty data metrics by RecordWithSchema.
--
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: commits-unsubscribe@inlong.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org