You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "geoffreyclaude (via GitHub)" <gi...@apache.org> on 2026/06/18 07:31:14 UTC

[PR] Extend Bitmap Filter to UInt16 (Heap-based) [datafusion]

geoffreyclaude opened a new pull request, #23012:
URL: https://github.com/apache/datafusion/pull/23012

   ## Which issue does this PR close?
   
   - Part of #19241.
   - Stacked on #23011.
   - Extracted from #19390.
   
   ## Rationale for this change
   
   This is one draft PR in the `IN LIST` optimization stack. It reuses commit `48e938d36` verbatim so the existing stack can be reviewed one step at a time.
   
   After the `UInt8` bitmap path, this extends the same O(1) membership idea to `UInt16` using a larger heap-allocated bitmap.
   
   ## What changes are included in this PR?
   
   - Extends the bitmap filter implementation for `UInt16` values.
   - Uses a 65536-bit bitmap for the 2-byte value domain.
   - Routes `UInt16` static-filter selection to the bitmap path.
   
   ## Are these changes tested?
   
   Covered by the existing `IN LIST` test suite from the original stack.
   
   ## Are there any user-facing changes?
   
   No user-facing API changes.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [PR] IN LIST: add UInt16 bitmap filter [datafusion]

Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #23012:
URL: https://github.com/apache/datafusion/pull/23012#issuecomment-4793728715

   🤖 Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/23012#issuecomment-4793704788)
   **Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c4793704788-667-djb9b 6.12.68+ #1 SMP Sat May  2 07:49:07 UTC 2026 aarch64 GNU/Linux`
   <details><summary>CPU Details (lscpu)</summary>
   
   ```
   Architecture:                            aarch64
   CPU op-mode(s):                          64-bit
   Byte Order:                              Little Endian
   CPU(s):                                  16
   On-line CPU(s) list:                     0-15
   Vendor ID:                               ARM
   Model name:                              Neoverse-V2
   Model:                                   1
   Thread(s) per core:                      1
   Core(s) per cluster:                     16
   Socket(s):                               -
   Cluster(s):                              1
   Stepping:                                r0p1
   BogoMIPS:                                2000.00
   Flags:                                   fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
   L1d cache:                               1 MiB (16 instances)
   L1i cache:                               1 MiB (16 instances)
   L2 cache:                                32 MiB (16 instances)
   L3 cache:                                80 MiB (1 instance)
   NUMA node(s):                            1
   NUMA node0 CPU(s):                       0-15
   Vulnerability Gather data sampling:      Not affected
   Vulnerability Indirect target selection: Not affected
   Vulnerability Itlb multihit:             Not affected
   Vulnerability L1tf:                      Not affected
   Vulnerability Mds:                       Not affected
   Vulnerability Meltdown:                  Not affected
   Vulnerability Mmio stale data:           Not affected
   Vulnerability Reg file data sampling:    Not affected
   Vulnerability Retbleed:                  Not affected
   Vulnerability Spec rstack overflow:      Not affected
   Vulnerability Spec store bypass:         Mitigation; Speculative Store Bypass disabled via prctl
   Vulnerability Spectre v1:                Mitigation; __user pointer sanitization
   Vulnerability Spectre v2:                Mitigation; CSV2, BHB
   Vulnerability Srbds:                     Not affected
   Vulnerability Tsa:                       Not affected
   Vulnerability Tsx async abort:           Not affected
   Vulnerability Vmscape:                   Not affected
   ```
   
   </details>
   
   Comparing perf/in_list_bitmap_u16_filter (85133a6b9b447b899ca107083f89484fd6c621ad) to e2c3e18 (merge-base) [diff](https://github.com/apache/datafusion/compare/e2c3e18412c1f30a4d3267b9655775adc1c16b96..85133a6b9b447b899ca107083f89484fd6c621ad) using: in_list_strategy
   Results will be posted here when complete
   
   ---
   [File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [PR] IN LIST: add UInt16 bitmap filter [datafusion]

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on code in PR #23012:
URL: https://github.com/apache/datafusion/pull/23012#discussion_r3481836802


##########
datafusion/physical-expr/src/expressions/in_list/primitive_filter.rs:
##########
@@ -104,6 +104,81 @@ impl StaticFilter for UInt8BitmapFilter {
     }
 }
 
+/// Bitmap filter for O(1) `UInt16` set membership via single bit test.
+///
+/// `UInt16` has 65,536 possible values, so the filter stores membership in an

Review Comment:
   Yes, we ceratinly seem to be doing better at making progress now



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [PR] IN LIST: add UInt16 bitmap filter [datafusion]

Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #23012:
URL: https://github.com/apache/datafusion/pull/23012#issuecomment-4794030297

   🤖 Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/23012#issuecomment-4793704788)
   
   **Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB)
   
   <details><summary>CPU Details (lscpu)</summary>
   
   ```
   Architecture:                            aarch64
   CPU op-mode(s):                          64-bit
   Byte Order:                              Little Endian
   CPU(s):                                  16
   On-line CPU(s) list:                     0-15
   Vendor ID:                               ARM
   Model name:                              Neoverse-V2
   Model:                                   1
   Thread(s) per core:                      1
   Core(s) per cluster:                     16
   Socket(s):                               -
   Cluster(s):                              1
   Stepping:                                r0p1
   BogoMIPS:                                2000.00
   Flags:                                   fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
   L1d cache:                               1 MiB (16 instances)
   L1i cache:                               1 MiB (16 instances)
   L2 cache:                                32 MiB (16 instances)
   L3 cache:                                80 MiB (1 instance)
   NUMA node(s):                            1
   NUMA node0 CPU(s):                       0-15
   Vulnerability Gather data sampling:      Not affected
   Vulnerability Indirect target selection: Not affected
   Vulnerability Itlb multihit:             Not affected
   Vulnerability L1tf:                      Not affected
   Vulnerability Mds:                       Not affected
   Vulnerability Meltdown:                  Not affected
   Vulnerability Mmio stale data:           Not affected
   Vulnerability Reg file data sampling:    Not affected
   Vulnerability Retbleed:                  Not affected
   Vulnerability Spec rstack overflow:      Not affected
   Vulnerability Spec store bypass:         Mitigation; Speculative Store Bypass disabled via prctl
   Vulnerability Spectre v1:                Mitigation; __user pointer sanitization
   Vulnerability Spectre v2:                Mitigation; CSV2, BHB
   Vulnerability Srbds:                     Not affected
   Vulnerability Tsa:                       Not affected
   Vulnerability Tsx async abort:           Not affected
   Vulnerability Vmscape:                   Not affected
   ```
   
   </details>
   
   <details><summary>Details</summary>
   <p>
   
   ```
   group                                                                HEAD                                   perf_in_list_bitmap_u16_filter
   -----                                                                ----                                   ------------------------------
   dictionary/i32/dict=10/list=16                                       1.00      7.6±0.01µs        ? ?/sec    1.00      7.6±0.01µs        ? ?/sec
   dictionary/i32/dict=100/list=16                                      1.00      7.7±0.01µs        ? ?/sec    1.00      7.7±0.01µs        ? ?/sec
   dictionary/i32/dict=100/list=16/NOT_IN                               1.00      7.8±0.01µs        ? ?/sec    1.00      7.7±0.01µs        ? ?/sec
   dictionary/i32/dict=100/list=4                                       1.00      7.7±0.03µs        ? ?/sec    1.00      7.7±0.02µs        ? ?/sec
   dictionary/i32/dict=100/list=64                                      1.00      7.8±0.01µs        ? ?/sec    1.00      7.8±0.01µs        ? ?/sec
   dictionary/i32/dict=1000/list=16                                     1.01      9.1±0.11µs        ? ?/sec    1.00      9.0±0.01µs        ? ?/sec
   dictionary/utf8_long/dict=100/list=16                                1.00      8.3±0.02µs        ? ?/sec    1.00      8.3±0.01µs        ? ?/sec
   dictionary/utf8_short/dict=50/list=32                                1.00      8.2±0.02µs        ? ?/sec    1.00      8.1±0.01µs        ? ?/sec
   dictionary/utf8_short/dict=50/list=8                                 1.00      8.0±0.01µs        ? ?/sec    1.00      8.0±0.01µs        ? ?/sec
   dictionary/utf8_short/dict=500/list=20                               1.00      9.6±0.04µs        ? ?/sec    1.00      9.6±0.01µs        ? ?/sec
   f32/large_list/list=64/match=0%                                      1.05     16.2±0.01µs        ? ?/sec    1.00     15.4±0.02µs        ? ?/sec
   f32/large_list/list=64/match=50%                                     1.00     23.8±0.22µs        ? ?/sec    1.13     26.8±0.41µs        ? ?/sec
   f32/small_list/list=32/match=0%                                      1.05     16.2±0.05µs        ? ?/sec    1.00     15.4±0.01µs        ? ?/sec
   f32/small_list/list=32/match=50%                                     1.04     29.0±0.44µs        ? ?/sec    1.00     28.0±0.25µs        ? ?/sec
   f32/small_list/list=4/match=0%                                       1.03     16.0±0.03µs        ? ?/sec    1.00     15.5±0.01µs        ? ?/sec
   f32/small_list/list=4/match=50%                                      1.02     27.5±0.16µs        ? ?/sec    1.00     27.0±0.43µs        ? ?/sec
   fixed_size_binary/fsb16/list=10000/match=0%                          1.00     25.3±0.04µs        ? ?/sec    1.03     26.2±0.48µs        ? ?/sec
   fixed_size_binary/fsb16/list=10000/match=50%                         1.00     54.5±0.29µs        ? ?/sec    1.01     54.9±0.18µs        ? ?/sec
   fixed_size_binary/fsb16/list=256/match=0%                            1.02     24.4±0.57µs        ? ?/sec    1.00     23.9±0.09µs        ? ?/sec
   fixed_size_binary/fsb16/list=256/match=50%                           1.00     49.8±0.37µs        ? ?/sec    1.00     50.1±0.40µs        ? ?/sec
   fixed_size_binary/fsb16/list=4/match=0%                              1.00     22.8±0.05µs        ? ?/sec    1.01     23.1±0.03µs        ? ?/sec
   fixed_size_binary/fsb16/list=4/match=50%                             1.00     55.1±0.35µs        ? ?/sec    1.00     55.2±0.41µs        ? ?/sec
   fixed_size_binary/fsb16/list=64/match=0%                             1.06     24.3±0.33µs        ? ?/sec    1.00     23.0±0.03µs        ? ?/sec
   fixed_size_binary/fsb16/list=64/match=50%                            1.00     55.5±0.19µs        ? ?/sec    1.00     55.4±0.28µs        ? ?/sec
   narrow_integer/i16/list=256/match=0%                                 1.00     12.2±0.02µs        ? ?/sec    1.02     12.4±0.02µs        ? ?/sec
   narrow_integer/i16/list=256/match=50%                                1.00     17.5±0.18µs        ? ?/sec    1.14     19.9±0.34µs        ? ?/sec
   narrow_integer/i16/list=4/match=0%                                   1.00     12.6±0.02µs        ? ?/sec    1.00     12.6±0.02µs        ? ?/sec
   narrow_integer/i16/list=4/match=50%                                  1.00     22.4±0.17µs        ? ?/sec    1.04     23.4±0.27µs        ? ?/sec
   narrow_integer/i16/list=64/match=0%                                  1.00     12.2±0.05µs        ? ?/sec    1.01     12.4±0.08µs        ? ?/sec
   narrow_integer/i16/list=64/match=50%                                 1.00     18.7±0.22µs        ? ?/sec    1.29     24.2±0.15µs        ? ?/sec
   narrow_integer/u8/list=16/match=0%                                   1.00      5.2±0.00µs        ? ?/sec    1.00      5.2±0.00µs        ? ?/sec
   narrow_integer/u8/list=16/match=50%                                  1.00      5.2±0.00µs        ? ?/sec    1.00      5.2±0.00µs        ? ?/sec
   narrow_integer/u8/list=4/match=0%                                    1.00      5.2±0.00µs        ? ?/sec    1.00      5.2±0.00µs        ? ?/sec
   narrow_integer/u8/list=4/match=50%                                   1.00      5.2±0.00µs        ? ?/sec    1.00      5.2±0.00µs        ? ?/sec
   nulls/narrow_integer/u8/list=16/match=50%/nulls=20%                  1.00      5.3±0.04µs        ? ?/sec    1.00      5.3±0.01µs        ? ?/sec
   nulls/primitive/i32/large_list/list=64/match=50%/nulls=20%           1.24     26.3±0.18µs        ? ?/sec    1.00     21.2±0.19µs        ? ?/sec
   nulls/primitive/i32/small_list/list=16/match=50%/nulls=20%           1.00     27.7±0.36µs        ? ?/sec    1.09     30.2±0.48µs        ? ?/sec
   nulls/primitive/i32/small_list/list=16/match=50%/nulls=20%/NOT_IN    1.03     26.0±0.14µs        ? ?/sec    1.00     25.4±0.15µs        ? ?/sec
   nulls/primitive/i32/small_list/list=16/match=50%/nulls=50%           1.00     21.8±0.12µs        ? ?/sec    1.03     22.5±0.05µs        ? ?/sec
   nulls/utf8/long_24b/list=16/match=50%/nulls=20%                      1.00     69.5±0.35µs        ? ?/sec    1.00     69.8±0.44µs        ? ?/sec
   nulls/utf8/short_8b/list=16/match=50%/nulls=20%                      1.00     58.5±0.36µs        ? ?/sec    1.04     60.9±0.76µs        ? ?/sec
   nulls/utf8view/long_24b/list=16/match=50%/nulls=20%                  1.00     77.4±0.30µs        ? ?/sec    1.13     87.4±0.20µs        ? ?/sec
   nulls/utf8view/short_8b/list=16/match=50%/nulls=20%                  1.00     40.5±0.12µs        ? ?/sec    1.07     43.1±0.11µs        ? ?/sec
   nulls/utf8view/short_8b/list=16/match=50%/nulls=20%/NOT_IN           1.00     40.7±0.19µs        ? ?/sec    1.06     43.0±0.13µs        ? ?/sec
   nulls/utf8view/short_8b/list=16/match=50%/nulls=50%                  1.00     29.2±0.12µs        ? ?/sec    1.06     30.8±0.06µs        ? ?/sec
   primitive/i32/large_list/list=256/match=0%                           1.00     12.0±0.12µs        ? ?/sec    1.06     12.8±0.06µs        ? ?/sec
   primitive/i32/large_list/list=256/match=50%                          1.00     26.8±0.24µs        ? ?/sec    1.02     27.4±0.23µs        ? ?/sec
   primitive/i32/large_list/list=64/match=0%                            1.00     11.9±0.01µs        ? ?/sec    1.00     11.8±0.01µs        ? ?/sec
   primitive/i32/large_list/list=64/match=50%                           1.11     33.3±0.16µs        ? ?/sec    1.00     30.1±0.27µs        ? ?/sec
   primitive/i32/small_list/list=16/match=50%/NOT_IN                    1.00     27.8±0.30µs        ? ?/sec    1.03     28.7±0.35µs        ? ?/sec
   primitive/i32/small_list/list=32/match=0%                            1.00     12.0±0.02µs        ? ?/sec    1.00     12.0±0.01µs        ? ?/sec
   primitive/i32/small_list/list=32/match=50%                           1.00     32.4±0.19µs        ? ?/sec    1.02     33.1±0.20µs        ? ?/sec
   primitive/i32/small_list/list=4/match=0%                             1.01     12.1±0.05µs        ? ?/sec    1.00     12.0±0.01µs        ? ?/sec
   primitive/i32/small_list/list=4/match=50%                            1.04     34.5±0.18µs        ? ?/sec    1.00     33.1±0.24µs        ? ?/sec
   primitive/i64/large_list/list=128/match=0%                           1.03     12.7±0.04µs        ? ?/sec    1.00     12.4±0.01µs        ? ?/sec
   primitive/i64/large_list/list=128/match=50%                          1.00     18.1±0.19µs        ? ?/sec    1.01     18.3±0.11µs        ? ?/sec
   primitive/i64/large_list/list=32/match=0%                            1.01     12.9±0.04µs        ? ?/sec    1.00     12.7±0.01µs        ? ?/sec
   primitive/i64/large_list/list=32/match=50%                           1.00     22.0±0.41µs        ? ?/sec    1.02     22.4±0.38µs        ? ?/sec
   primitive/i64/small_list/list=16/match=0%                            1.00     12.1±0.03µs        ? ?/sec    1.01     12.3±0.02µs        ? ?/sec
   primitive/i64/small_list/list=16/match=50%                           1.29     22.6±0.33µs        ? ?/sec    1.00     17.5±0.11µs        ? ?/sec
   primitive/i64/small_list/list=4/match=0%                             1.00     11.9±0.02µs        ? ?/sec    1.02     12.1±0.08µs        ? ?/sec
   primitive/i64/small_list/list=4/match=50%                            1.00     23.7±0.20µs        ? ?/sec    1.01     23.8±0.27µs        ? ?/sec
   timestamp_ns/large_list/list=32/match=0%                             1.00     17.2±0.02µs        ? ?/sec    1.01     17.3±0.03µs        ? ?/sec
   timestamp_ns/large_list/list=32/match=50%                            1.00     29.0±0.30µs        ? ?/sec    1.04     30.2±0.24µs        ? ?/sec
   timestamp_ns/small_list/list=16/match=0%                             1.00     17.3±0.02µs        ? ?/sec    1.00     17.2±0.03µs        ? ?/sec
   timestamp_ns/small_list/list=16/match=50%                            1.00     29.3±0.60µs        ? ?/sec    1.00     29.2±0.13µs        ? ?/sec
   timestamp_ns/small_list/list=4/match=0%                              1.00     17.0±0.07µs        ? ?/sec    1.00     17.1±0.03µs        ? ?/sec
   timestamp_ns/small_list/list=4/match=50%                             1.00     30.0±0.16µs        ? ?/sec    1.04     31.3±0.42µs        ? ?/sec
   utf8/long_24b/list=256/match=0%                                      1.00     33.9±0.03µs        ? ?/sec    1.01     34.3±0.05µs        ? ?/sec
   utf8/long_24b/list=256/match=50%                                     1.02     71.9±0.35µs        ? ?/sec    1.00     70.2±0.47µs        ? ?/sec
   utf8/long_24b/list=4/match=0%                                        1.00     34.4±0.35µs        ? ?/sec    1.00     34.6±0.06µs        ? ?/sec
   utf8/long_24b/list=4/match=50%                                       1.00     72.6±0.36µs        ? ?/sec    1.01     73.4±0.44µs        ? ?/sec
   utf8/long_24b/list=64/match=0%                                       1.00     33.7±0.04µs        ? ?/sec    1.01     34.0±0.04µs        ? ?/sec
   utf8/long_24b/list=64/match=50%                                      1.01     71.6±0.36µs        ? ?/sec    1.00     70.6±0.69µs        ? ?/sec
   utf8/mixed_len/list=16/match=0%                                      1.03     36.6±0.08µs        ? ?/sec    1.00     35.5±0.07µs        ? ?/sec
   utf8/mixed_len/list=16/match=50%                                     1.09    105.8±0.52µs        ? ?/sec    1.00     96.7±0.59µs        ? ?/sec
   utf8/mixed_len/list=64/match=0%                                      1.00     38.0±0.08µs        ? ?/sec    1.02     38.7±0.07µs        ? ?/sec
   utf8/mixed_len/list=64/match=50%                                     1.11    115.6±0.42µs        ? ?/sec    1.00    103.7±0.80µs        ? ?/sec
   utf8/shared_prefix/pfx=12/list=32/match=50%                          1.00     72.3±0.64µs        ? ?/sec    1.01     73.4±0.27µs        ? ?/sec
   utf8/short_8b/list=16/match=50%/NOT_IN                               1.00     62.6±0.42µs        ? ?/sec    1.02     64.0±0.29µs        ? ?/sec
   utf8/short_8b/list=256/match=0%                                      1.00     26.3±0.03µs        ? ?/sec    1.01     26.7±0.03µs        ? ?/sec
   utf8/short_8b/list=256/match=50%                                     1.00     62.9±0.34µs        ? ?/sec    1.02     64.0±0.48µs        ? ?/sec
   utf8/short_8b/list=4/match=0%                                        1.00     26.3±0.03µs        ? ?/sec    1.01     26.5±0.09µs        ? ?/sec
   utf8/short_8b/list=4/match=50%                                       1.00     62.1±0.33µs        ? ?/sec    1.03     63.8±0.30µs        ? ?/sec
   utf8/short_8b/list=64/match=0%                                       1.03     27.4±0.16µs        ? ?/sec    1.00     26.7±0.18µs        ? ?/sec
   utf8/short_8b/list=64/match=50%                                      1.00     61.5±0.40µs        ? ?/sec    1.03     63.2±0.35µs        ? ?/sec
   utf8view/len_12b/list=16/match=0%                                    1.00     17.8±0.04µs        ? ?/sec    1.01     18.0±0.08µs        ? ?/sec
   utf8view/len_12b/list=16/match=50%                                   1.03     48.5±0.25µs        ? ?/sec    1.00     47.2±0.23µs        ? ?/sec
   utf8view/len_12b/list=64/match=0%                                    1.00     17.9±0.03µs        ? ?/sec    1.02     18.1±0.03µs        ? ?/sec
   utf8view/len_12b/list=64/match=50%                                   1.01     46.3±0.20µs        ? ?/sec    1.00     45.9±0.27µs        ? ?/sec
   utf8view/long_24b/list=16/match=0%                                   1.01     40.6±0.26µs        ? ?/sec    1.00     40.3±0.06µs        ? ?/sec
   utf8view/long_24b/list=16/match=50%                                  1.00     86.4±0.18µs        ? ?/sec    1.02     88.2±0.26µs        ? ?/sec
   utf8view/long_24b/list=256/match=0%                                  1.00     40.1±0.04µs        ? ?/sec    1.03     41.2±0.26µs        ? ?/sec
   utf8view/long_24b/list=256/match=50%                                 1.00     84.6±0.21µs        ? ?/sec    1.03     86.8±0.25µs        ? ?/sec
   utf8view/long_24b/list=4/match=0%                                    1.00     40.3±0.08µs        ? ?/sec    1.00     40.3±0.05µs        ? ?/sec
   utf8view/long_24b/list=4/match=50%                                   1.00     86.0±0.29µs        ? ?/sec    1.02     88.0±0.24µs        ? ?/sec
   utf8view/long_24b/list=64/match=0%                                   1.00     40.3±0.05µs        ? ?/sec    1.00     40.5±0.06µs        ? ?/sec
   utf8view/long_24b/list=64/match=50%                                  1.00     83.4±0.27µs        ? ?/sec    1.03     85.6±0.97µs        ? ?/sec
   utf8view/mixed_len/list=16/match=0%                                  1.00     30.2±0.07µs        ? ?/sec    1.01     30.4±0.10µs        ? ?/sec
   utf8view/mixed_len/list=16/match=50%                                 1.12     72.9±0.68µs        ? ?/sec    1.00     65.1±0.47µs        ? ?/sec
   utf8view/mixed_len/list=64/match=0%                                  1.00     34.3±0.12µs        ? ?/sec    1.00     34.3±0.21µs        ? ?/sec
   utf8view/mixed_len/list=64/match=50%                                 1.04     84.7±0.61µs        ? ?/sec    1.00     81.2±0.46µs        ? ?/sec
   utf8view/shared_prefix/pfx=12/list=32/match=0%                       1.00     42.2±0.18µs        ? ?/sec    1.02     42.9±0.26µs        ? ?/sec
   utf8view/shared_prefix/pfx=12/list=32/match=50%                      1.00     82.4±0.29µs        ? ?/sec    1.05     86.8±0.20µs        ? ?/sec
   utf8view/shared_prefix/pfx=16/list=64/match=0%                       1.00     40.5±0.11µs        ? ?/sec    1.02     41.4±0.29µs        ? ?/sec
   utf8view/shared_prefix/pfx=16/list=64/match=50%                      1.00     83.3±0.21µs        ? ?/sec    1.03     85.5±0.15µs        ? ?/sec
   utf8view/shared_prefix/pfx=8/list=16/match=0%                        1.03     30.6±0.41µs        ? ?/sec    1.00     29.8±0.07µs        ? ?/sec
   utf8view/shared_prefix/pfx=8/list=16/match=50%                       1.00     71.8±0.29µs        ? ?/sec    1.01     72.6±0.34µs        ? ?/sec
   utf8view/short_8b/list=16/match=0%                                   1.00     17.7±0.02µs        ? ?/sec    1.01     17.7±0.05µs        ? ?/sec
   utf8view/short_8b/list=16/match=50%                                  1.00     43.3±0.32µs        ? ?/sec    1.02     44.1±0.31µs        ? ?/sec
   utf8view/short_8b/list=256/match=0%                                  1.00     17.9±0.03µs        ? ?/sec    1.00     17.8±0.07µs        ? ?/sec
   utf8view/short_8b/list=256/match=50%                                 1.00     42.6±0.14µs        ? ?/sec    1.03     43.7±0.25µs        ? ?/sec
   utf8view/short_8b/list=4/match=0%                                    1.00     17.8±0.02µs        ? ?/sec    1.01     18.1±0.04µs        ? ?/sec
   utf8view/short_8b/list=4/match=50%                                   1.01     46.8±0.25µs        ? ?/sec    1.00     46.4±0.21µs        ? ?/sec
   utf8view/short_8b/list=64/match=0%                                   1.00     18.0±0.04µs        ? ?/sec    1.00     18.0±0.06µs        ? ?/sec
   utf8view/short_8b/list=64/match=50%                                  1.00     41.4±0.38µs        ? ?/sec    1.03     42.8±0.20µs        ? ?/sec
   ```
   
   </p>
   </details>
   
   <details><summary>Resource Usage</summary>
   
   **in_list_strategy — base (merge-base)**
   | Metric | Value |
   |--------|-------|
   | Wall time | 1355.3s |
   | Peak memory | 41.4 MiB |
   | Avg memory | 28.5 MiB |
   | CPU user | 1414.3s |
   | CPU sys | 1.3s |
   | Peak spill | 0 B |
   
   **in_list_strategy — branch**
   | Metric | Value |
   |--------|-------|
   | Wall time | 1350.3s |
   | Peak memory | 42.2 MiB |
   | Avg memory | 29.0 MiB |
   | CPU user | 1416.7s |
   | CPU sys | 1.3s |
   | Peak spill | 0 B |
   
   </details>
   
   
   ---
   [File an issue](https://github.com/adriangb/datafusion-benchmarking/issues) against this benchmark runner


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [PR] IN LIST: add UInt16 bitmap filter [datafusion]

Posted by "gabotechs (via GitHub)" <gi...@apache.org>.
gabotechs merged PR #23012:
URL: https://github.com/apache/datafusion/pull/23012


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [PR] IN LIST: add UInt16 bitmap filter [datafusion]

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on code in PR #23012:
URL: https://github.com/apache/datafusion/pull/23012#discussion_r3470348532


##########
datafusion/physical-expr/src/expressions/in_list/primitive_filter.rs:
##########
@@ -104,6 +104,81 @@ impl StaticFilter for UInt8BitmapFilter {
     }
 }
 
+/// Bitmap filter for O(1) `UInt16` set membership via single bit test.
+///
+/// `UInt16` has 65,536 possible values, so the filter stores membership in an

Review Comment:
   the only question I have is is it worth 8KB for a small inlist -- e.g. if there are 3 elements, 8kb may be a lot of memory overhead, though perhaps the performance is worth it



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [PR] IN LIST: add UInt16 bitmap filter [datafusion]

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on PR #23012:
URL: https://github.com/apache/datafusion/pull/23012#issuecomment-4793704788

   
   run benchmark in_list_strategy
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [PR] IN LIST: add UInt16 bitmap filter [datafusion]

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on code in PR #23012:
URL: https://github.com/apache/datafusion/pull/23012#discussion_r3476497419


##########
datafusion/physical-expr/src/expressions/in_list/primitive_filter.rs:
##########
@@ -104,6 +104,81 @@ impl StaticFilter for UInt8BitmapFilter {
     }
 }
 
+/// Bitmap filter for O(1) `UInt16` set membership via single bit test.
+///
+/// `UInt16` has 65,536 possible values, so the filter stores membership in an

Review Comment:
   sounds like we hav a plan -- let's keep going then!



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [PR] IN LIST: add UInt16 bitmap filter [datafusion]

Posted by "geoffreyclaude (via GitHub)" <gi...@apache.org>.
geoffreyclaude commented on code in PR #23012:
URL: https://github.com/apache/datafusion/pull/23012#discussion_r3470397305


##########
datafusion/physical-expr/src/expressions/in_list/primitive_filter.rs:
##########
@@ -104,6 +104,81 @@ impl StaticFilter for UInt8BitmapFilter {
     }
 }
 
+/// Bitmap filter for O(1) `UInt16` set membership via single bit test.
+///
+/// `UInt16` has 65,536 possible values, so the filter stores membership in an

Review Comment:
   Actually the branchless strategy (see later PR in the stack) wins against bitmaps on lists of sizes  up to 8 (both for u8 and u16.)
   I still need to amend it though, as it currently skips 1 and 2 byte types.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [PR] IN LIST: add UInt16 bitmap filter [datafusion]

Posted by "geoffreyclaude (via GitHub)" <gi...@apache.org>.
geoffreyclaude commented on code in PR #23012:
URL: https://github.com/apache/datafusion/pull/23012#discussion_r3476572649


##########
datafusion/physical-expr/src/expressions/in_list/primitive_filter.rs:
##########
@@ -104,6 +104,81 @@ impl StaticFilter for UInt8BitmapFilter {
     }
 }
 
+/// Bitmap filter for O(1) `UInt16` set membership via single bit test.
+///
+/// `UInt16` has 65,536 possible values, so the filter stores membership in an

Review Comment:
   One PR at a time! This is much cleaner and trackable than everything in a single mega PR for sure



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [PR] IN LIST: add UInt16 bitmap filter [datafusion]

Posted by "geoffreyclaude (via GitHub)" <gi...@apache.org>.
geoffreyclaude commented on PR #23012:
URL: https://github.com/apache/datafusion/pull/23012#issuecomment-4803983889

   > Looks good to me -- thank you @geoffreyclaude 
   
   @alamb looks like the merge queue had some random issue


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org