Skip to content

fix(cudf): Preserve GPU batch boundaries in window spill tests - #106

Merged
sperlingxx merged 1 commit into
HighPerfDataAccelerator:devfrom
sperlingxx:fix/cudf-window-streaming-spill-tests
Sep 1, 2026
Merged

fix(cudf): Preserve GPU batch boundaries in window spill tests#106
sperlingxx merged 1 commit into
HighPerfDataAccelerator:devfrom
sperlingxx:fix/cudf-window-streaming-spill-tests

Conversation

@sperlingxx

Copy link
Copy Markdown
Collaborator

Summary

  • Keep each Values batch as its own GPU input in the two streaming CudfWindow disk-spill tests (velox.cudf.gpu_batch_size_rows=1).
  • Default CudfFromVelox coalescing (100000 rows) was merging three tiny batches into one GPU input, so testingStreamingSpillWrites() was 1 instead of >= 3.
  • This is operator disk spill (Parquet under the task spill directory), not HMB / host-memory spill.

Why

AdapterOperatorTest.streamingFullPartitionCountSpillsActivePartition and streamingRangeSumSpillsActivePeer were added in #20 when Values was still replaced by CudfValues. After GPU operators were reconciled with upstream, Values stays on CPU and CudfFromVelox holds all six rows until noMoreInput(). CudfWindow then sees one batch and spills only the trailing group. Query results were already correct.

Test plan

  • Reproduce on HPDA dev 28798f623 (CUDA SM 86): both tests fail actual: 1 vs 3.
  • After this change, both spill tests pass.
  • Full velox_cudf_adapter_operator_test: 18/18 passed.

Fixes #105
Part of #100

Prepared with assistance from Cursor.

CudfFromVelox coalesces tiny Values batches up to 100000 rows, so the
streaming CudfWindow disk-spill tests only saw one GPU input and one
spill write. Keep gpu_batch_size_rows at 1 so each Values batch can
spill independently.

Fixes rapidsai#105
Part of rapidsai#100

@thirtiseven thirtiseven left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@sperlingxx
sperlingxx merged commit baee4c7 into HighPerfDataAccelerator:dev Sep 1, 2026
3 checks passed
@sperlingxx
sperlingxx deleted the fix/cudf-window-streaming-spill-tests branch September 1, 2026 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug] CudfWindow streaming disk-spill tests see 1 write instead of 3

2 participants