Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeCategory::from does not handle Utf8View #13358

Closed
Omega359 opened this issue Nov 11, 2024 · 2 comments
Closed

TypeCategory::from does not handle Utf8View #13358

Omega359 opened this issue Nov 11, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Omega359
Copy link
Contributor

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

@Omega359
Copy link
Contributor Author

I think this is taken care of by #13350

@Omega359
Copy link
Contributor Author

Fixed by #13350

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant