You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by GitBox <gi...@apache.org> on 2022/12/21 08:24:10 UTC
[GitHub] [inlong] chestnut-c commented on a diff in pull request #6931: [INLONG-6925][Sort] Add read phase metric and table level metric for MongoDB-CDC
chestnut-c commented on code in PR #6931:
URL: https://github.com/apache/inlong/pull/6931#discussion_r1054099101
##########
inlong-sort/sort-connectors/mongodb-cdc/src/main/java/org/apache/inlong/sort/cdc/mongodb/DebeziumSourceFunction.java:
##########
@@ -505,11 +505,11 @@ public void deserialize(SourceRecord record, Collector<T> out) throws Exception
source = value.getStruct(RecordUtils.DOCUMENT_TO_FIELD);
}
String dbName = source.getString(MongoDBEnvelope.NAMESPACE_DATABASE_FIELD);
- String tableName = source.getString(MongoDBEnvelope.NAMESPACE_COLLECTION_FIELD);
+ String collectionName = source.getString(MongoDBEnvelope.NAMESPACE_COLLECTION_FIELD);
SnapshotRecord snapshotRecord = SnapshotRecord.fromSource(source);
boolean isSnapshotRecord = (SnapshotRecord.TRUE == snapshotRecord);
sourceMetricData
- .outputMetricsWithEstimate(dbName, tableName, isSnapshotRecord, value);
+ .outputMetricsWithEstimate(dbName, collectionName, isSnapshotRecord, value);
Review Comment:
rebase it .
--
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