Skip to content

Cast from DATE to VARCHAR (Utf8View) fails #17533

@findepi

Description

@findepi

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

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingregressionSomething that used to work no longer does

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions