Skip to content

[Pipe] Fix aggregate window statistics - #19326

Open
Caideyipi wants to merge 1 commit into
masterfrom
fix/pipe-aggregate-window-statistics
Open

Caideyipi wants to merge 1 commit into
masterfrom
fix/pipe-aggregate-window-statistics

Conversation

@Caideyipi

Copy link
Copy Markdown
Collaborator

Summary

  • Fix standard aggregate statistics for negative values, integer extremes, and overflowing intermediate sums.
  • Preserve legacy window-state restoration semantics and reject collisions between explicit and default output names.

Example

A tumbling window over INT64 values [-4, -9] emits peak=9 with the INT64 schema. A peak from Long.MIN_VALUE saturates at Long.MAX_VALUE instead of wrapping.

Verification

  • mvn clean test -pl iotdb-core/datanode -am -T 1 -Dtest=AggregateProcessorTest,TumblingWindowingProcessorTest -Dsurefire.failIfNoSpecifiedTests=false (26 tests passed)
  • mvn spotless:apply -P with-integration-tests -pl iotdb-core/datanode -am (passed)
  • git diff --cached --check (passed)

@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant