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

Add a way to access logical String ScalarValues as &str #14166

Closed
alamb opened this issue Jan 17, 2025 · 0 comments · Fixed by #14167
Closed

Add a way to access logical String ScalarValues as &str #14166

alamb opened this issue Jan 17, 2025 · 0 comments · Fixed by #14167
Assignees
Labels
enhancement New feature or request

Comments

@alamb
Copy link
Contributor

alamb commented Jan 17, 2025

Is your feature request related to a problem or challenge?

We hit a bug upstream in InfluxDB in pruning where we didn't match a certain kind of string ScalarValue

In this case , we want to access the underlying strvalue of a ScalarValue that holds a logical string (ScalarValue::Ut8 and ScalarValue::LargeUtf8 for example)

There are several types I know of (Utf8, LargeUtf8, Utf8View, and Dictionary(.., <...>)

Today we need to remember to check for all the relent types

Describe the solution you'd like

I would like a function on ScalarValue that does this -- so we don't have bugs when we forget to check for a type.

Describe alternatives you've considered

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant