-
-
Notifications
You must be signed in to change notification settings - Fork 9
join_key can set default parent
#215
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
Conversation
476fa06 to
497435d
Compare
Code Coverage SummaryDiff against mainResults for commit: 86529be Minimum allowed coverage is ♻️ This comment has been updated with latest results |
Unit Test Performance DifferenceAdditional test case details
Results for commit 3270664 ♻️ This comment has been updated with latest results. |
gogonzo
left a comment
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.
parent argument is confusing. Default values differ between two functions and the possibility of having a parent as dataset_1 or dataset_2 is too "freely". I would prefer to limit dataset_1 to be a parent only. So that
join_key("parent", "child", c(id_in_parent = id_in_child), directed = TRUE) # default
join_key("A", "B", c(id_in_A = id_in_B), directed = FALSE)Co-authored-by: kartikeya kirar <kirar.kartikeya1@gmail.com> Signed-off-by: André Veríssimo <211358+averissimo@users.noreply.github.com>
Co-authored-by: kartikeya kirar <kirar.kartikeya1@gmail.com> Co-authored-by: Dawid Kałędkowski <6959016+gogonzo@users.noreply.github.com> Signed-off-by: André Veríssimo <211358+averissimo@users.noreply.github.com>
Co-authored-by: Aleksander Chlebowski <114988527+chlebowa@users.noreply.github.com> Signed-off-by: André Veríssimo <211358+averissimo@users.noreply.github.com>
Co-authored-by: Dawid Kałędkowski <6959016+gogonzo@users.noreply.github.com> Signed-off-by: André Veríssimo <211358+averissimo@users.noreply.github.com>
|
@averissimo PR looks great. I have re-reviewed it and tested it with |
kartikeyakirar
left a comment
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.
👍
…efault (#1020) # Pull Request <!--- Replace `#nnn` with your issue link for reference. --> Fixes insightsengineering/teal.slice#502 Part of insightsengineering/teal.slice#503 and insightsengineering/teal.data#215 ### Changes - Corrects test to reflect behavior resulting from `teal.data` default parent setting when creating new `join_key`
Pull Request
Fixes #203
Changes description / TODO while wip
join_key()and[<-.join_keysthat determines which dataset is parentjoin_keysjoin_keyvignette🗨️ Discussion
jk[[i]][[j]] <- keydefine a parent relationship?jk[[i]] <- list(j = key, m = key2)would have to set parents forjandmparentparameter.[[should be left undirected