github-actions[bot] commented on code in PR #62816:
URL: https://github.com/apache/doris/pull/62816#discussion_r3144816030


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/insert/AbstractInsertExecutor.java:
##########
@@ -215,6 +215,9 @@ protected final void execImpl(StmtExecutor executor) throws 
Exception {
         if (coordinator.getLoadCounters().get(LoadEtlTask.DPP_ABNORMAL_ALL) != 
null) {
             filteredRows = 
Integer.parseInt(coordinator.getLoadCounters().get(LoadEtlTask.DPP_ABNORMAL_ALL));
         }
+        if (insertLoadJob != null) {
+            insertLoadJob.getLoadStatistic().setFilteredRows(filteredRows);

Review Comment:
   `Coordinator`/`LoadContext` aggregate `DPP_ABNORMAL_ALL` as a `long`, and 
this PR now carries the value through `long`/`int64` fields. But this executor 
still feeds the new path from an `int` parsed with `Integer.parseInt(...)`. If 
a load filters more than `Integer.MAX_VALUE` rows, FE will fail here before 
`loadStatistic` / the txn attachment is built, so the new end-to-end 
`filteredRows` path is still incorrect for large jobs. Please switch this 
executor field to `long` and parse with `Long.parseLong(...)` to match the rest 
of the pipeline.`



##########
fe/fe-core/src/main/java/org/apache/doris/job/extensions/insert/streaming/StreamingInsertJob.java:
##########
@@ -669,6 +669,7 @@ private void 
updateJobStatisticAndOffset(StreamingTaskTxnCommitAttachment attach
         this.jobStatistic.setLoadBytes(this.jobStatistic.getLoadBytes() + 
attachment.getLoadBytes());
         this.jobStatistic.setFileNumber(this.jobStatistic.getFileNumber() + 
attachment.getNumFiles());
         this.jobStatistic.setFileSize(this.jobStatistic.getFileSize() + 
attachment.getFileBytes());
+        this.jobStatistic.setFilteredRows(this.jobStatistic.getFilteredRows() 
+ attachment.getFilteredRows());

Review Comment:
   This writes `filteredRows` into `jobStatistic`, but the FE metric is still 
only updated in `updateNoTxnJobStatisticAndOffset()`. After this PR, 
single-table txn jobs will finally show non-zero `jobStatistic.filteredRows`, 
while `/metrics` still reports `doris_fe_streaming_job_filter_rows = 0` for the 
same path, and the cloud replay branch below never resets the cumulative 
counter either. If the metric is meant to cover streaming jobs generally, the 
txn path needs the same live/replay updates as `total_rows` / `load_bytes`.



-- 
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]

Reply via email to