### Describe the bug ``` DataFusion CLI v50.0.0 > SELECT CAST(DATE '9999-12-31' AS varchar); This feature is not implemented: Unsupported CAST from Date32 to Utf8View ``` ### To Reproduce ```shell cargo run --bin datafusion-cli -- --command "SELECT CAST(DATE '9999-12-31' AS varchar);" ``` ### Expected behavior ``` +--------------------+ | Utf8("9999-12-31") | +--------------------+ | 9999-12-31 | +--------------------+ 1 row(s) fetched. Elapsed 0.057 seconds. ``` ### Additional context This used to work in DataFusion 47. DataFusion 48.x is the first release affected.
Activity
findepi commentedon Sep 12, 2025
arrow_casttoUtf8worksarrow_casttoUtf8Viewfailsfindepi commentedon Sep 12, 2025
Probably fixed upstream in apache/arrow-rs@e613622 / apache/arrow-rs#6872
findepi commentedon Sep 12, 2025
We probably need to fix
can_cast_typestoocan_cast_typesfor temporal toUtf8Viewarrow-rs#8328[-]Cast from DATE to VARCHAR fails[/-][+]Cast from `DATE` to `VARCHAR` (`Utf8View`) fails[/+]