Skip to content

fix: preserve strict sortedness for singleton null batches - #10889

Merged
connortsui20 merged 1 commit into
developfrom
ct/strict-sorted-single-null
Oct 27, 2026
Merged

connortsui20 merged 1 commit into
developfrom
ct/strict-sorted-single-null

Conversation

@connortsui20

@connortsui20 connortsui20 commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

Summary

One-liner.

Treat a singleton canonical batch as sorted while preserving checks against the preceding batch. Strict IsSorted now agrees with is_strict_sorted for a single null primitive, bool or decimal value.

Changes

  • Apply the singleton rule before the dtype-specific within-batch check.
  • Cover singleton nulls across canonical, Constant, Dict and RunEnd representations, plus flat, split and Chunked inputs with null and duplicate boundaries.

Signed-off-by: Connor Tsui <connor.tsui20@gmail.com>
@codspeed

codspeed Bot commented Oct 27, 2026

Copy link
Copy Markdown

Merging this PR will degrade performance by 0.11%

3 warnings

⚠️ Walltime results may be unreliable

Some benchmarks used the Walltime instrument outside CodSpeed Macro Runners, which can make the results inconsistent.

Learn more about Macro Runners

See affected benchmarks

⚠️ 7 benchmarks are dominated by system calls

System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.

Learn more about system calls

See affected benchmarks

⚠️ Base and head ran on different runner types

Some benchmarks with significant performance changes were compared across different runner types, so the changes might not come from the code. Run base and head on the same runner type, or use CodSpeed Macro Runners for more stable results.

Learn more about Macro Runners

Open the report in CodSpeed to investigate

⚡ 2 improved benchmarks
❌ 2 regressed benchmarks
✅ 2200 untouched benchmarks
⏩ 370 skipped benchmarks1
🗄️ 30 archived benchmarks run2

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Mode Benchmark BASE HEAD Efficiency
❌ CPU Simulation missing_stats[16] 71 µs 88.1 µs -19.36%
❌ Walltime starts_with_avx512[8, VarBinView] 68.4 µs 76.3 µs -10.3%
⚡ CPU Simulation encode_primitives[u8, (2000, 4)] 164.6 µs 136.4 µs +20.68%
⚡ Walltime threshold_avx2[80] 3 µs 2.6 µs +14.03%

Tip

Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.


Comparing ct/strict-sorted-single-null (e80b418) with develop (088118b)

Open in CodSpeed

Footnotes

  1. 370 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

  2. 30 benchmarks were run, but are now archived. If they were deleted in another branch, consider rebasing to remove them from the report. Instead if they were added back, click here to restore them. ↩

@connortsui20
connortsui20 enabled auto-merge (squash) October 27, 2026 17:57
@connortsui20
connortsui20 merged commit b6ad04f into develop Oct 27, 2026
111 of 113 checks passed
@connortsui20
connortsui20 deleted the ct/strict-sorted-single-null branch October 27, 2026 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/fix A bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants