You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "Weijun-H (via GitHub)" <gi...@apache.org> on 2024/01/02 02:47:56 UTC

[I] Cast nested `List` to `LargeList` [arrow-datafusion]

Weijun-H opened a new issue, #8305:
URL: https://github.com/apache/arrow-datafusion/issues/8305

   ### Is your feature request related to a problem or challenge?
   
   datafusion cannot cast nested `List` to `LargeList`, like `List(List(Int64))` to `LargeList(LargeList(Int64))`.
   ```
   select arrow_cast(make_array(make_array(1, 2, 3), make_array(4, 5, 6)), 'LargeList(LargeList(Int64))');
   
   Error during planning: Cannot automatically convert List(Field { name: "item", data_type: List(Field { name: "item", data_type: Int64, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }), nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }) to LargeList(Field { name: "item", data_type: LargeList(Field { name: "item", data_type: Int64, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }), nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} })
   ```
   
   ### Describe the solution you'd like
   
   https://github.com/apache/arrow-rs/blob/master/arrow-cast/src/cast.rs#L133-L135
   ```
           (List(list_from), LargeList(list_to)) => {
               list_from.data_type() == list_to.data_type()
           }
   ```
   
   ### Describe alternatives you've considered
   
   
   
   _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: github-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Cast nested `List` to `LargeList` [arrow-datafusion]

Posted by "Weijun-H (via GitHub)" <gi...@apache.org>.
Weijun-H closed issue #8305: Cast nested `List` to `LargeList`
URL: https://github.com/apache/arrow-datafusion/issues/8305


-- 
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@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Cast nested `List` to `LargeList` [arrow-datafusion]

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on issue #8305:
URL: https://github.com/apache/arrow-datafusion/issues/8305#issuecomment-1874197435

   > Will be fixed by arrow-rs 50.0
   
   This is tracked by https://github.com/apache/arrow-rs/issues/5234


-- 
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@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Cast nested `List` to `LargeList` [arrow-datafusion]

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb closed issue #8305: Cast nested `List` to `LargeList`
URL: https://github.com/apache/arrow-datafusion/issues/8305


-- 
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@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Cast nested `List` to `LargeList` [arrow-datafusion]

Posted by "Weijun-H (via GitHub)" <gi...@apache.org>.
Weijun-H commented on issue #8305:
URL: https://github.com/apache/arrow-datafusion/issues/8305#issuecomment-1835760408

   Will be fixed by arrow-rs 50.0


-- 
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@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org