Skip to content

Conversation

findepi
Copy link
Member

@findepi findepi commented Sep 12, 2025

cast and cast_with_options gained support for casting from temporal values to Utf8View in e613622. This updates can_cast_types to match. This is necessary for DataFusion to use this casts, as DF consults can_cast_types first.

`cast` and `cast_with_options` gained support for casting from temporal
values to `Utf8View` in e613622. This
updates `can_cast_types` to match. This is necessary for DataFusion to
use this casts, as DF consults `can_cast_types` first.
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @findepi

($array:expr, $datatype:expr, $output_array_type: ty, $expected:expr) => {{
assert!(can_cast_types($array.data_type(), &$datatype));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@alamb alamb merged commit d4ff12f into apache:main Sep 13, 2025
26 checks passed
@findepi findepi deleted the findepi/fix-can-cast-types-for-temporal-to-utf8view-7bf7d1 branch September 13, 2025 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arrow Changes to the arrow crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants