Skip to content

[python] Reuse gathered window values across aggregations - #9804

Open
QuakeWang wants to merge 1 commit into
apache:masterfrom
QuakeWang:window-gather
Open

QuakeWang wants to merge 1 commit into
apache:masterfrom
QuakeWang:window-gather

Conversation

@QuakeWang

Copy link
Copy Markdown
Member

Purpose

Window joins already deduplicate row IDs before fetching payloads, but each aggregation rebuilds Arrow indices and gathers the same source column again.

Gather each source column once per window and reuse it across aggregations. Release gathered values after processing that window and column, preserving output order, empty/null behavior, output types, and mean precision and overflow handling.

Tests

  • Regression test verifies reduced take calls, interleaved outputs, overlapping windows, and empty/null behavior.
  • All 67 multimodal temporal tests passed.
  • Flake8, license headers, and git diff --check passed.

Gather each source column once per window and reuse it across aggregations, avoiding repeated Arrow takes and index allocations. Preserve aggregation semantics and output order without caching gathered windows.

Signed-off-by: QuakeWang <wangfuzheng0814@foxmail.com>
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