Repository navigation
Expose list membership with SQL null semantics in Java and Python - #10053
Conversation
Merging this PR will degrade performance by 13.06%
|
| 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)
Footnotes
-
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. ↩
f1eea0e to
ef75b12
Compare
2aaa1b6 to
1b63fd8
Compare
ef75b12 to
f350f7b
Compare
1b63fd8 to
3151b45
Compare
f350f7b to
3e6c3cb
Compare
3151b45 to
b6ffdda
Compare
b6ffdda to
ed99a18
Compare
3e6c3cb to
12f4b8f
Compare
12f4b8f to
4b5ce4a
Compare
ed99a18 to
0e3443a
Compare
4b5ce4a to
74eda6a
Compare
0e3443a to
2242462
Compare
74eda6a to
ab3ce3b
Compare
2242462 to
828a8f7
Compare
ab3ce3b to
fd2586b
Compare
79947bc to
de5cf13
Compare
2a51612 to
446956a
Compare
446956a to
6801f5b
Compare
520e97b to
59aa869
Compare
856b420 to
2bda1b5
Compare
2bda1b5 to
e5839ff
Compare
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>
74e1e65 to
59f85c9
Compare
Expose the membership expressions from Java/JNI and Python, so callers can construct one set-membership expression with either Vortex or SQL null semantics.