hsiang-c opened a new issue, #21046:
URL: https://github.com/apache/datafusion/issues/21046
### Describe the bug
Both DuckDB (`list_zip`) and Spark (`arrays_zip`) accept single array
argument:
```sql
duckdb> SELECT list_zip([1, 2, 3]);
┌────────────────────────────────────┐
│ list_zip(main.list_value(1, 2, 3)) │
╞════════════════════════════════════╡
│ [{: 1}, {: 2}, {: 3}] │
└────────────────────────────────────┘
```
```sql
scala> spark.sql("select arrays_zip(array(1, 2, 3))").show(false)
+--------------------------+
|arrays_zip(array(1, 2, 3))|
+--------------------------+
|[{1}, {2}, {3}] |
+--------------------------+
```
However, DataFusion fails w/ `arrays_zip requires at least two arguments`
### To Reproduce
_No response_
### Expected behavior
_No response_
### Additional context
_No response_
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]