-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Is your feature request related to a problem or challenge?
https://docs.rs/datafusion/latest/datafusion/dataframe/struct.DataFrame.html#method.with_param_values allows filling query parameters with values. However, each parameter is positional, so that it corresponds to $1,$2 and so forth.
In certain situations, it might be clearer to use named parameters, e.g $foo.
Describe the solution you'd like
Would it be possible to support named query parameters?
On a cursory look, it seems like the underlying LogicalPlan already supports mapping parameter ids to values, so this might "just" be to change the with_param_values API to allow specifying the named parameter ids.
Describe alternatives you've considered
Keep using positional query parameters.
Additional context
No response
alamb
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request