You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "nathanb9 (via GitHub)" <gi...@apache.org> on 2026/06/28 20:06:07 UTC
[PR] Refactor make_map_batch array handling [datafusion]
nathanb9 opened a new pull request, #23228:
URL: https://github.com/apache/datafusion/pull/23228
## Which issue does this PR close?
- Closes #22833.
## Rationale for this change
Simplify make_map_batch array handling after scalar expansion.
## What changes are included in this PR?
Pass extracted ArrayRefs through validation and map construction.
## Are these changes tested?
Ran `cargo fmt --all`, `cargo test -p datafusion-functions-nested map`, and `cargo clippy --all-targets --all-features -- -D warnings`.
## Are there any user-facing changes?
No.
--
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] refactor: `make_map_batch` array handling [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #23228:
URL: https://github.com/apache/datafusion/pull/23228#issuecomment-4834468918
🤖 Benchmark running (GKE) | [trigger](https://github.com/apache/datafusion/pull/23228#issuecomment-4834442569)
**Instance:** `c4a-highmem-16` (12 vCPU / 65 GiB) | `Linux bench-c4834442569-735-fkp4h 6.12.85+ #1 SMP Mon May 11 08:17:35 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 issue-22833-make-map-refactor (41dfb4698f7d6caa77b506e462517da6e5e68931) to ea2ffdb (merge-base) [diff](https://github.com/apache/datafusion/compare/ea2ffdbe4ec216a1a635c606d49431ebab0a4d50..41dfb4698f7d6caa77b506e462517da6e5e68931) using: map
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] refactor: `make_map_batch` array handling [datafusion]
Posted by "comphead (via GitHub)" <gi...@apache.org>.
comphead commented on PR #23228:
URL: https://github.com/apache/datafusion/pull/23228#issuecomment-4834442569
run benchmark map
--
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] refactor: `make_map_batch` array handling [datafusion]
Posted by "comphead (via GitHub)" <gi...@apache.org>.
comphead merged PR #23228:
URL: https://github.com/apache/datafusion/pull/23228
--
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] refactor: `make_map_batch` array handling [datafusion]
Posted by "adriangbot (via GitHub)" <gi...@apache.org>.
adriangbot commented on PR #23228:
URL: https://github.com/apache/datafusion/pull/23228#issuecomment-4834573088
🤖 Benchmark completed (GKE) | [trigger](https://github.com/apache/datafusion/pull/23228#issuecomment-4834442569)
**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 issue-22833-make-map-refactor
----- ---- -----------------------------
make_map_1000 1.01 72.0±1.40µs ? ?/sec 1.00 71.6±1.36µs ? ?/sec
map_1000_binary 1.00 8.9±0.02ms ? ?/sec 1.04 9.2±0.02ms ? ?/sec
map_1000_binary_view 1.00 8.6±0.03ms ? ?/sec 1.05 9.1±0.05ms ? ?/sec
map_1000_int32 1.00 4.7±0.01ms ? ?/sec 1.02 4.8±0.02ms ? ?/sec
map_1000_utf8 1.00 9.1±0.04ms ? ?/sec 1.04 9.5±0.02ms ? ?/sec
map_1000_utf8_view 1.00 8.9±0.03ms ? ?/sec 1.05 9.4±0.03ms ? ?/sec
```
</p>
</details>
<details><summary>Resource Usage</summary>
**map — base (merge-base)**
| Metric | Value |
|--------|-------|
| Wall time | 350.1s |
| Peak memory | 131.9 MiB |
| Avg memory | 19.0 MiB |
| CPU user | 73.4s |
| CPU sys | 0.1s |
| Peak spill | 0 B |
**map — branch**
| Metric | Value |
|--------|-------|
| Wall time | 330.1s |
| Peak memory | 130.0 MiB |
| Avg memory | 20.8 MiB |
| CPU user | 73.5s |
| CPU sys | 0.1s |
| 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