Skip to content

Emit intermediate results on the mostRecent-unique path#3740

Open
apmoriarty wants to merge 2 commits into
integrationfrom
task/fix-most-recent-unique-intermediate-results
Open

Emit intermediate results on the mostRecent-unique path#3740
apmoriarty wants to merge 2 commits into
integrationfrom
task/fix-most-recent-unique-intermediate-results

Conversation

@apmoriarty

Copy link
Copy Markdown
Collaborator

Summary

  • UniqueTransform.apply() returned null immediately after updating the mostRecent-unique backing map, short-circuiting before the timeout/intermediate-result check. A long-running mostRecent-unique accumulation therefore never emitted a keep-alive intermediate page.
  • Falls through to the existing timeout check instead of returning early, so the mostRecent path can emit intermediate results just like the standard unique path.

Test plan

  • Added a regression test to the existing UniqueTransformMostRecentTest asserting an intermediate result is emitted once the per-page timeout is exceeded
  • mvn -pl warehouse/query-core -Dtest="datawave.query.transformer.**,datawave.query.common.grouping.**" test passes

🤖 Generated with Claude Code

apmoriarty and others added 2 commits July 23, 2026 16:09
UniqueTransform.apply() returned null immediately after updating the mostRecent map,
short-circuiting before the timeout/intermediate-result check. A long-running mostRecent-unique
accumulation therefore never emitted a keep-alive intermediate page. Fall through to the
existing timeout check instead of returning early.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant