Skip to content

Make it easier to create ScalarValue from String and &str #8380

@alamb

Description

@alamb

Is your feature request related to a problem or challenge?

Someone reported on Discord: https://discord.com/channels/885562378132000778/1166447479609376850/1179899297483980941

currently when I'm trying to pass a String into ScalarValue::from(), the compiler is telling me that the trait bound ScalarValue: Fromstd::string::String is not satisfied

Let's make it easier for people to get started with DataFusioN!

Describe the solution you'd like

Make it so the following code works

let scalar = ScalarValue::from("foo");
let scalar = ScalarValue::from("foo".to_string());

Describe alternatives you've considered

No response

Additional context

I think this is a good first issue as it is well specified and would be a nice usability improvement

Related PR: #8378 (it would be nice to add an example of creating ScalarValue from a string there too)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions