Skip to content

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

Closed

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

Activity

  1. jayzhan211 commented on Nov 12, 2024

    @jayzhan211
    Contributor

    Instead of maintaining this function, we should change function that rely on coerced_from to TypeSignature::String or similar

  2. added a commit that references this issue on Jul 29, 2026
    1727b7d
  3. added a commit that references this issue on Aug 12, 2026
    fb75a61
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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