spark: introduce Spark `arrays_zip`
- Dominant language
- Rust
- Stars
- 9.3k
- Forks
- 2.4k
- Avg merge
- 3d 7h
- Merged PRs (30d)
- 344
Description
### Is your feature request related to a problem or challenge?
Followup on https://github.com/apache/datafusion/pull/20886
Spark `arrays_zip` return type is slightly different from DF or DuckDB
```
scala> spark.sql("select arrays_zip(array(1, 2, 3), array(2, 3, 4), array(3, 4, 5))").printSchema
root
|-- arrays_zip(array(1, 2, 3), array(2, 3, 4), array(3, 4, 5)): array (nullable = false)
| |-- element: struct (containsNull = false)
| | |-- 0: integer (nullable = true)
| | |-- 1: integer (nullable = true)
| | |-- 2: integer (nullable = true)
```
whereas DF/DuckDB numeration starts with 1.
The idea is to introduce Spark wrapper on top of DF `arrays_zip` and change return type
### Describe the solution you'd like
_No response_
### Describe alternatives you've considered
_No response_
### Additional context
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.