-
Notifications
You must be signed in to change notification settings - Fork 6
adds join_by
#128
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
base: main
Are you sure you want to change the base?
adds join_by
#128
Conversation
Thanks @drizk1 for your continued work on this. I'm going to try to merge a bunch of PRs today. |
* fix sep_rows for all string types * fixes `@summary` (#124) * fixes `@summary` * Added support for non-numeric columns, minor tweaks to column names. --------- Co-authored-by: Karandeep Singh <[email protected]> --------- Co-authored-by: Karandeep Singh <[email protected]>
@drizk1, thanks for working on this. In R, the reason they introduced In Julia, I don't think we have this same limitation. I think they we can support either syntax without needing to reach for Until we can support inequality joins (either using My ideal future is one that supports any of the following options, with the caveat in the below paragraph. @inner_join(a, b, col_a = col_b)
@inner_join(a, b, col_a == col_b)
@inner_join(a, b, col_a > col_b) In terms of how to implement inequality joins, In that case, our implementation could look like this: @inner_join(a, b, col_a = col_b) # using DataFrames.jl
@inner_join(a, b, join_by(col_a == col_b)) # using FlexiJoins.jl
@inner_join(a, b, join_by(col_a > col_b)) # using FlexiJoins.jl Open to thoughts. |
Ahh that makes sense then why they switched to Using
|
Ah, thanks for that. I think the one weird thing is that FlexiJoins duplicates even when you do |
no problem. the duped column names is currently my thorn in tidierdb. |
I am not sure if this was the best way to do it, or if i should have removed the old syntax from the docstring, but this is one possible implementation (if
join_by
is not the move based on what happens with #126 i can close pr )allows for all joins: