Skip to content

fix: evaluate OR for validity#6184

Merged
blaginin merged 5 commits intodevelopfrom
db/kleene-or
Jan 28, 2026
Merged

fix: evaluate OR for validity#6184
blaginin merged 5 commits intodevelopfrom
db/kleene-or

Conversation

@blaginin
Copy link
Member

No description provided.

Signed-off-by: blaginin <github@blaginin.me>
Signed-off-by: blaginin <github@blaginin.me>
@blaginin blaginin self-assigned this Jan 28, 2026
@blaginin blaginin added bug A bug issue changelog/fix A bug fix labels Jan 28, 2026
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jan 28, 2026

Deploying vortex-bench with  Cloudflare Pages  Cloudflare Pages

Latest commit: f385faf
Status: ✅  Deploy successful!
Preview URL: https://50aeb0e5.vortex-93b.pages.dev
Branch Preview URL: https://db-kleene-or.vortex-93b.pages.dev

View logs

Signed-off-by: blaginin <github@blaginin.me>
@blaginin blaginin marked this pull request as ready for review January 28, 2026 12:20
@@ -238,6 +238,7 @@ impl VTable for Binary {
Ok(match operator {
// AND and OR are kleene logic.
Copy link
Contributor

Choose a reason for hiding this comment

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

lol

Comment on lines 698 to 701
assert_eq!(
result.scalar_at(0).vortex_expect("value"),
Scalar::bool(true, Nullability::NonNullable),
)
Copy link
Contributor

Choose a reason for hiding this comment

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

can you use assert_arrays_eq!

Signed-off-by: blaginin <github@blaginin.me>
@blaginin blaginin enabled auto-merge (squash) January 28, 2026 13:45
@codspeed-hq
Copy link

codspeed-hq bot commented Jan 28, 2026

CodSpeed Performance Report

Merging this PR will degrade performance by 31.23%

Comparing db/kleene-or (475f085) with develop (00dabeb)

⚠️ 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.

Summary

⚡ 7 improved benchmarks
❌ 10 regressed benchmarks
✅ 1144 untouched benchmarks
⏩ 1323 skipped benchmarks1

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Mode Benchmark BASE HEAD Efficiency
Simulation canonical_into_non_nullable[(10000, 1, 0.1)] 47.1 µs 57 µs -17.33%
Simulation canonical_into_non_nullable[(10000, 1, 0.01)] 31.3 µs 41 µs -23.73%
Simulation canonical_into_non_nullable[(10000, 10, 0.0)] 194.2 µs 278.8 µs -30.34%
Simulation canonical_into_non_nullable[(10000, 1, 0.0)] 24.9 µs 36.2 µs -31.23%
Simulation canonical_into_non_nullable[(10000, 10, 0.1)] 380.7 µs 471.5 µs -19.27%
Simulation canonical_into_non_nullable[(10000, 10, 0.01)] 221.2 µs 306 µs -27.7%
Simulation canonical_into_nullable[(10000, 100, 0.0)] 5 ms 4.3 ms +14.16%
Simulation into_canonical_non_nullable[(10000, 1, 0.1)] 62.8 µs 55.2 µs +13.77%
Simulation into_canonical_non_nullable[(10000, 10, 0.1)] 385.2 µs 473 µs -18.57%
Simulation into_canonical_non_nullable[(10000, 1, 0.01)] 46.3 µs 39.1 µs +18.4%
Simulation into_canonical_non_nullable[(10000, 1, 0.0)] 40.4 µs 33 µs +22.45%
Simulation into_canonical_non_nullable[(10000, 10, 0.0)] 201.8 µs 283.6 µs -28.86%
Simulation into_canonical_non_nullable[(10000, 10, 0.01)] 229.3 µs 310.6 µs -26.16%
Simulation into_canonical_nullable[(10000, 10, 0.1)] 632.2 µs 720.2 µs -12.22%
Simulation into_canonical_nullable[(10000, 10, 0.0)] 541.3 µs 459.4 µs +17.84%
Simulation into_canonical_nullable[(10000, 100, 0.0)] 5.1 ms 4.3 ms +16.87%
Simulation into_canonical_nullable[(10000, 100, 0.1)] 6.9 ms 6.1 ms +13.68%

Footnotes

  1. 1323 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.

let expr = or(col("a"), col("b"));
let result = struct_arr.apply(&expr).unwrap();

assert_arrays_eq!(result, BoolArray::from_iter([Some(true)]).into_array())
Copy link
Contributor

Choose a reason for hiding this comment

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

you don't need into_array

@blaginin blaginin merged commit eb0e658 into develop Jan 28, 2026
45 of 47 checks passed
@blaginin blaginin deleted the db/kleene-or branch January 28, 2026 13:56
danking pushed a commit that referenced this pull request Feb 6, 2026
Signed-off-by: blaginin <github@blaginin.me>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug A bug issue changelog/fix A bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants