-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Provide DataFrame API for map
and move map
to functions-array
#11560
Conversation
|
||
#[tokio::test] | ||
async fn test_fn_map() -> Result<()> { | ||
let expr = map(vec![lit("a"), lit("b"), lit("c")], vec![lit(1), lit(2), lit(3)]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I expected the DataFrame user can use map
like this.
f43bd10
to
670e245
Compare
map
map
and move map
to functions-array
Can we also add |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree map makes sense to be in the functions-array crate. Thank you @goldmedal and @jayzhan211
Thanks @jayzhan211 and @alamb for reviewing! |
…pache#11560) * move map to `functions-array` and implement dataframe api * add benchmark for dataframe api * fix format * add roundtrip_expr_api test
Which issue does this PR close?
Closes #11546 .
Rationale for this change
What changes are included in this PR?
map()
.map
function is based onarray
, I movedmap
tofunctions-array
. See more discussion in Easier Dataframe API formap
#11546 (comment)Are these changes tested?
yes
Are there any user-facing changes?
Add a function