Skip to content

coerced_from in functions.rs seems to be missing Utf8View in some cases #13363

@Omega359

Description

@Omega359

Describe the bug

Timestamp(TimeUnit::Nanosecond, None),
:

(
Timestamp(TimeUnit::Nanosecond, None),
Null | Timestamp(_, None) | Date32 | Utf8 | LargeUtf8,
) => Some(type_into.clone()),
(Interval(_), Utf8 | LargeUtf8) => Some(type_into.clone()),
// We can go into a Utf8View from a Utf8 or LargeUtf8
(Utf8View, Utf8 | LargeUtf8 | Null) => Some(type_into.clone()),
// Any type can be coerced into strings
(Utf8 | LargeUtf8, _) => Some(type_into.clone()),

I can't see a reason why right now that timestamp or interval should not be a target for Utf8View. As well, there shouldn't be a reason why any type can't be coerced into Utf8View.

To Reproduce

No response

Expected behavior

Utf8View is supported as a source for coercion for Timestamp and Interval, and as a target for coercion for all types.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions