Jefffrey commented on PR #22730:
URL: https://github.com/apache/datafusion/pull/22730#issuecomment-4650003213
one thing i find confusing is this seems inconsistent with lists, for example
```sql
> select arrow_typeof(a), arrow_cast(a, 'List(non-null Int64)') from values
([1, 2]), ([3, 4]) t(a);
+-------------------+----------------------------------------------+
| arrow_typeof(t.a) | arrow_cast(t.a,Utf8("List(non-null Int64)")) |
+-------------------+----------------------------------------------+
| List(Int64) | [1, 2] |
| List(Int64) | [3, 4] |
+-------------------+----------------------------------------------+
2 row(s) fetched.
Elapsed 0.005 seconds.
```
we are allowed to cast from a list with nullable inner field (by default i
think display of type doesn't show `nullable` if its nullable) to a non-null
inner field 🤔
could we investigate this discrepancy?
--
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]