Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand can_cast_types for inner fields in struct dtype #5151

Open
ion-elgreco opened this issue Nov 30, 2023 · 1 comment
Open

Expand can_cast_types for inner fields in struct dtype #5151

ion-elgreco opened this issue Nov 30, 2023 · 1 comment
Labels
enhancement Any new improvement worthy of a entry in the changelog

Comments

@ion-elgreco
Copy link

ion-elgreco commented Nov 30, 2023

Is your feature request related to a problem or challenge? Please describe what you are trying to do.

Describe the solution you'd like

Expand can_cast_types to support struct inner types can cast checks. Currently it's not possible to cast this because can_cast_types fails with structs:

"Cannot cast file schema field struct of type Struct([Field { name: \"x\", data_type: Int64, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }, Field { name: \"y\", data_type: LargeUtf8, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }]) to table schema field of type Struct([Field { name: \"x\", data_type: Int64, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }, Field { name: \"y\", data_type: Utf8, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }])"

Describe alternatives you've considered

Additional context

@ion-elgreco ion-elgreco added the enhancement Any new improvement worthy of a entry in the changelog label Nov 30, 2023
@tustvold
Copy link
Contributor

Possible duplicate of #4908

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Any new improvement worthy of a entry in the changelog
Projects
None yet
Development

No branches or pull requests

2 participants