refactor: extend ProcessorRecord with seq/iteration fields for ClickHouse model

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-04-01 00:02:03 +02:00
parent 968117c41a
commit 190ae2797d
5 changed files with 22 additions and 6 deletions

View File

@@ -159,7 +159,8 @@ public class IngestionService {
p.getErrorType(), p.getErrorCategory(),
p.getRootCauseType(), p.getRootCauseMessage(),
p.getErrorHandlerType(), p.getCircuitBreakerState(),
p.getFallbackTriggered()
p.getFallbackTriggered(),
null, null, null, null, null, null
));
}
return flat;

View File

@@ -49,6 +49,17 @@ public interface ExecutionStore {
String errorType, String errorCategory,
String rootCauseType, String rootCauseMessage,
String errorHandlerType, String circuitBreakerState,
Boolean fallbackTriggered
Boolean fallbackTriggered,
// New fields for ClickHouse seq-based model
Integer seq,
Integer parentSeq,
Integer iteration,
Integer iterationSize,
Boolean filterMatched,
Boolean duplicateMessage
) {}
default Optional<ProcessorRecord> findProcessorBySeq(String executionId, int seq) {
return Optional.empty();
}
}

View File

@@ -29,7 +29,8 @@ class TreeReconstructionTest {
status, NOW, NOW, 10L,
null, null, null, null, null, null, null,
null, null, null, null, null,
null, null, null, null, null, null, null, null
null, null, null, null, null, null, null, null,
null, null, null, null, null, null
);
}