Skip to content

Use AllNonDistinct in assert_arrays_eq and implement it for variant types#8546

Open
robert3005 wants to merge 1 commit into
developfrom
assert_arrays_eq_allnondistinct
Open

Use AllNonDistinct in assert_arrays_eq and implement it for variant types#8546
robert3005 wants to merge 1 commit into
developfrom
assert_arrays_eq_allnondistinct

Conversation

@robert3005

Copy link
Copy Markdown
Contributor

AllNonDistinct is exactly the semantics we want, it should be faster and in case
of failure we run the slow method to produce precise error message

@robert3005 robert3005 requested a review from a team June 22, 2026 23:29
…ypes

assert_arrays_eq_impl detects equality via all_non_distinct (with a lazy
find_mismatched_indices only to build the failure message). Adds the
Canonical::Variant arm (compare logical variant scalars), a ParquetVariant
aggregate kernel that compares typed_value/value children directly, and fixes
check_primitive_identical to use NativePType::is_eq (bitwise float equality).

Stacked on the assert_arrays_eq (ExecutionCtx threading) branch.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Robert Kruszewski <github@robertk.io>
@robert3005 robert3005 force-pushed the assert_arrays_eq_allnondistinct branch from 28495bc to e89702f Compare June 22, 2026 23:30
@codspeed-hq

codspeed-hq Bot commented Jun 22, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

⚠️ Unknown Walltime execution environment detected

Using the Walltime instrument on standard Hosted Runners will lead to inconsistent data.

For the most accurate results, we recommend using CodSpeed Macro Runners: bare-metal machines fine-tuned for performance measurement consistency.

⚡ 4 improved benchmarks
❌ 1 regressed benchmark
✅ 1578 untouched benchmarks

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Mode Benchmark BASE HEAD Efficiency
Simulation chunked_varbinview_into_canonical[(1000, 10)] 168.9 µs 205.6 µs -17.86%
Simulation chunked_varbinview_canonical_into[(100, 100)] 258.9 µs 224.2 µs +15.47%
Simulation bitwise_not_vortex_buffer_mut[128] 244.4 ns 215.3 ns +13.55%
Simulation chunked_varbinview_into_canonical[(100, 100)] 306 µs 271.1 µs +12.87%
Simulation bitwise_not_vortex_buffer_mut[1024] 304.7 ns 275.6 ns +10.58%

Tip

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


Comparing assert_arrays_eq_allnondistinct (e89702f) with develop (5a764e6)

Open in CodSpeed

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