jayzhan211 opened a new issue, #8318: URL: https://github.com/apache/arrow-datafusion/issues/8318
### Is your feature request related to a problem or challenge? To reproduce error `select array_ndims(arrow_cast([null], 'List(List(List(Int64)))'));` ### Describe the solution you'd like Compute ndims on DataType, this avoid downcast the actual ArrayRef and it is much more straightforward. ### Describe alternatives you've considered _No response_ ### Additional context Done in https://github.com/apache/arrow-datafusion/pull/8317, plan to split it to another PR. -- 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-unsubscr...@arrow.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org