Skip to content

TypeCategory::from does not handle Utf8View #13358

Closed

Description

@Omega359

Describe the bug

Utf8View currently is matching as Unsupported but should be matched as unknown in TypeCategory::from

// String literal is possible to cast to many other types like numeric or datetime,
// therefore, it is categorized as an unknown type
if matches!(
    data_type,
    DataType::Utf8 | LargeUtf8 | DataType::Null
) {
    return TypeCategory::Unknown;
}

This should include Utf8View

To Reproduce

See code.

Expected behavior

Utf8View should map to TypeCategory::Unknown

Additional context

No response

Activity

  1. Omega359 commented on Nov 11, 2024

    @Omega359
    ContributorAuthor

    I think this is taken care of by #13350

  2. Omega359 commented on Nov 14, 2024

    @Omega359
    ContributorAuthor

    Fixed by #13350

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