Skip to content

Expose list membership with SQL null semantics in Java and Python - #10053

Merged
robert3005 merged 3 commits into
developfrom
rk/list-contains-bindings
Oct 20, 2026
Merged

robert3005 merged 3 commits into
developfrom
rk/list-contains-bindings

Conversation

@robert3005

@robert3005 robert3005 commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Expose the membership expressions from Java/JNI and Python, so callers can construct one set-membership expression with either Vortex or SQL null semantics.

@codspeed

codspeed Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

Merging this PR will degrade performance by 13.06%

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

⚠️ 17 benchmarks spent significant time in system calls

System calls cannot be consistently instrumented, so they are not included in the measure, which understates the real cost. Please switch to the Walltime instrument to accurately measure system calls.

Measurement and system calls

ℹ️ 40 benchmarks have no flame graph

The flamegraph could not be generated because we failed to resolve the symbols in the profiling trace. This happens when we fail to harvest information about language frames.

⚠️ Different runtime environments detected

Some benchmarks with significant performance changes were compared across different runtime environments,
which may affect the accuracy of the results.

Open the report in CodSpeed to investigate

⚡ 4 improved benchmarks
❌ 9 regressed benchmarks
✅ 2395 untouched benchmarks
⏩ 12 skipped benchmarks1

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Mode Benchmark BASE HEAD Efficiency
❌ WallTime filter_neon[8] 959 ns 1,706 ns -43.79%
❌ WallTime filter_neon[64] 1.8 µs 2.7 µs -33.27%
❌ WallTime threshold_neon[8] 1.4 µs 1.9 µs -27.14%
❌ WallTime threshold_neon[80] 3.5 µs 4.5 µs -21.78%
❌ WallTime filter_neon[80] 2.7 µs 3.3 µs -20.02%
❌ ⚠️ Simulation test_repeated_scan_scalar_at[int_str_float] 517.3 µs 602.7 µs -14.17%
❌ WallTime threshold_neon[64] 2.7 µs 3.1 µs -13.54%
❌ Simulation isolated_runs[u32, (16, 0)] 78.5 µs 88.4 µs -11.17%
❌ WallTime decode_chunked_neon[i64, 524288] 13.4 µs 15 µs -10.76%
⚡ ℹ️ Simulation test_scan_filter_to_arrow_array[int_float] 4.1 ms 3.5 ms +15.72%
⚡ ℹ️ Simulation test_repeated_scan_filter[int_float] 3.9 ms 3.5 ms +12.21%
⚡ ℹ️ Simulation test_repeated_scan_filter[int] 2.8 ms 2.5 ms +11.68%
⚡ ℹ️ Simulation test_scan_filter_to_arrow_array[int] 2.8 ms 2.5 ms +11.16%

Tip

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


Comparing rk/list-contains-bindings (59f85c9) with develop (8c2534e)

Open in CodSpeed

Footnotes

  1. 12 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. ↩

@robert3005
robert3005 removed this pull request from stack #10055 September 25, 2026 14:05
@robert3005
robert3005 force-pushed the claude/friendly-knuth-dj6ed1-list-contains branch from f1eea0e to ef75b12 Compare September 25, 2026 14:06
@robert3005
robert3005 force-pushed the rk/list-contains-bindings branch from 2aaa1b6 to 1b63fd8 Compare September 25, 2026 14:06
@robert3005
robert3005 added this pull request to stack #10058 September 25, 2026 14:06
@robert3005
robert3005 removed this pull request from stack #10058 September 25, 2026 14:09
@robert3005
robert3005 force-pushed the claude/friendly-knuth-dj6ed1-list-contains branch from ef75b12 to f350f7b Compare September 25, 2026 14:09
@robert3005
robert3005 force-pushed the rk/list-contains-bindings branch from 1b63fd8 to 3151b45 Compare September 25, 2026 14:09
@robert3005
robert3005 added this pull request to stack #10061 September 25, 2026 14:09
@github-actions
github-actions Bot temporarily deployed to docs-preview/pr-10053 September 25, 2026 14:21 Inactive
@robert3005
robert3005 force-pushed the claude/friendly-knuth-dj6ed1-list-contains branch from f350f7b to 3e6c3cb Compare September 25, 2026 15:53
@robert3005
robert3005 force-pushed the rk/list-contains-bindings branch from 3151b45 to b6ffdda Compare September 25, 2026 15:53
@github-actions
github-actions Bot temporarily deployed to docs-preview/pr-10053 September 25, 2026 16:04 Inactive
@robert3005
robert3005 force-pushed the rk/list-contains-bindings branch from b6ffdda to ed99a18 Compare September 25, 2026 16:28
@robert3005
robert3005 force-pushed the claude/friendly-knuth-dj6ed1-list-contains branch from 3e6c3cb to 12f4b8f Compare September 25, 2026 16:28
@github-actions
github-actions Bot temporarily deployed to docs-preview/pr-10053 September 25, 2026 16:39 Inactive
@robert3005
robert3005 force-pushed the claude/friendly-knuth-dj6ed1-list-contains branch from 12f4b8f to 4b5ce4a Compare September 25, 2026 17:10
@robert3005
robert3005 force-pushed the rk/list-contains-bindings branch from ed99a18 to 0e3443a Compare September 25, 2026 17:10
@github-actions
github-actions Bot temporarily deployed to docs-preview/pr-10053 September 25, 2026 17:20 Inactive
@robert3005
robert3005 force-pushed the claude/friendly-knuth-dj6ed1-list-contains branch from 4b5ce4a to 74eda6a Compare September 25, 2026 17:26
@robert3005
robert3005 force-pushed the rk/list-contains-bindings branch from 0e3443a to 2242462 Compare September 25, 2026 17:26
@github-actions
github-actions Bot temporarily deployed to docs-preview/pr-10053 September 25, 2026 17:37 Inactive
@robert3005
robert3005 force-pushed the claude/friendly-knuth-dj6ed1-list-contains branch from 74eda6a to ab3ce3b Compare September 25, 2026 20:28
@robert3005
robert3005 force-pushed the rk/list-contains-bindings branch from 2242462 to 828a8f7 Compare September 25, 2026 20:28
@robert3005
robert3005 force-pushed the claude/friendly-knuth-dj6ed1-list-contains branch from ab3ce3b to fd2586b Compare September 28, 2026 20:43
@robert3005
robert3005 force-pushed the claude/friendly-knuth-dj6ed1-list-contains branch from 79947bc to de5cf13 Compare October 12, 2026 10:23
@robert3005
robert3005 removed this pull request from stack #10061 October 12, 2026 10:29
@robert3005
robert3005 force-pushed the rk/list-contains-bindings branch from 2a51612 to 446956a Compare October 12, 2026 10:29
@robert3005
robert3005 added this pull request to stack #10441 October 12, 2026 10:29
@robert3005
robert3005 removed this pull request from stack #10441 October 12, 2026 10:29
@robert3005
robert3005 changed the base branch from claude/friendly-knuth-dj6ed1-list-contains to rk/list-contains-dict-runend October 12, 2026 10:29
@robert3005
robert3005 added this pull request to stack #10443 October 12, 2026 10:29
@github-actions
github-actions Bot temporarily deployed to docs-preview/pr-10053 October 12, 2026 10:39 Inactive
@robert3005
robert3005 force-pushed the rk/list-contains-bindings branch from 446956a to 6801f5b Compare October 14, 2026 17:32
@robert3005
robert3005 force-pushed the rk/list-contains-dict-runend branch from 520e97b to 59aa869 Compare October 14, 2026 17:32
@github-actions
github-actions Bot temporarily deployed to docs-preview/pr-10053 October 14, 2026 17:51 Inactive
@robert3005
robert3005 force-pushed the rk/list-contains-bindings branch 2 times, most recently from 856b420 to 2bda1b5 Compare October 14, 2026 18:34
@robert3005
robert3005 removed this pull request from stack #10443 October 14, 2026 18:35
@robert3005
robert3005 changed the base branch from rk/list-contains-dict-runend to develop October 14, 2026 18:35
@github-actions
github-actions Bot temporarily deployed to docs-preview/pr-10053 October 14, 2026 18:47 Inactive
@robert3005
robert3005 force-pushed the rk/list-contains-bindings branch from 2bda1b5 to e5839ff Compare October 15, 2026 11:49
@github-actions
github-actions Bot temporarily deployed to docs-preview/pr-10053 October 15, 2026 11:58 Inactive
@robert3005 robert3005 added the changelog/feature A new feature label Oct 15, 2026
@github-actions
github-actions Bot temporarily deployed to docs-preview/pr-10053 October 15, 2026 12:28 Inactive
robert3005 and others added 3 commits October 19, 2026 16:42
Add Java/JNI list literals, listContains and IN/NOT IN builders. Expose the
SQL null-semantics option and in_list in Python, including list literal
coercion, public exports, typing, documentation and regression coverage.

Signed-off-by: Robert Kruszewski <github@robertk.io>
Signed-off-by: Robert Kruszewski <github@robertk.io>
…ortex

Polars `is_in` and PyArrow `isin` filters failed to convert to Vortex
expressions, so these scans raised instead of pushing the filter down.
Both now become `list_contains` of a list literal, with the null
semantics of the library that wrote the filter:

- Polars: a null needle gives null, and a null member is ignored. That is
  SQL null semantics for a list without a null and the default ones for a
  list with one. With `nulls_equal`, a null needle is a member when the
  list holds a null. The members come from the Arrow IPC list literal or
  the imploded series that Polars writes.
- PyArrow: `isin` arrives as a Substrait `singular_or_list` and never
  gives null, so a null needle is not a member. Substrait does not carry
  whether PyArrow skips nulls, so a set that holds a null is rejected.
  Integer and float members take the field's type, as PyArrow writes
  Python numbers at 64 bits.

Polars casts a narrower integer column to Int64 before `is_in`, and the
converter does not translate casts yet, so those predicates still fail.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Robert Kruszewski <github@robertk.io>
@robert3005
robert3005 force-pushed the rk/list-contains-bindings branch from 74e1e65 to 59f85c9 Compare October 19, 2026 15:42
@robert3005
robert3005 enabled auto-merge (squash) October 19, 2026 15:43
@github-actions
github-actions Bot temporarily deployed to docs-preview/pr-10053 October 19, 2026 16:15 Inactive
@robert3005
robert3005 merged commit 2ebe999 into develop Oct 20, 2026
88 of 89 checks passed
@robert3005
robert3005 deleted the rk/list-contains-bindings branch October 20, 2026 09:45

This branch was previously deployed

1 inactive deployment
docs-preview/pr-10053 — 59f85c90 Deployed Oct 19, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/feature A new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants