-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
flatten all level #6844
flatten all level #6844
Conversation
We would appreciate it if you could provide us with more info about this issue/pr! |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6844 +/- ##
==========================================
- Coverage 63.82% 63.41% -0.41%
==========================================
Files 161 163 +2
Lines 13060 13209 +149
Branches 1803 1825 +22
==========================================
+ Hits 8335 8377 +42
- Misses 4425 4533 +108
+ Partials 300 299 -1
|
@KimBioInfoStudio Heya, there's no description for this PR. 😉 Um... why is flattening stuff useful for MongoDB? |
in the original code, only 2d dict was faltten, but my data struct have 4d dict like, it's hard for me to query on low level and viz on low level: {
"a": "aa",
"b": ["bb1","bb2","bb3","bb4"],
"c": {
"cc1": ["cc11", "cc12", "cc13"],
"cc2": {"cc21k":"cc21v"}
}
} |
@AndrewChubatiuk @eradman What do you both think of this? I'm concerned that this will potentially break things for existing users of MongoDB. If that's not likely to happen though, then this might be ok. 😄 |
u r right, if the option is not configureable, this will break existing mongodb users |
That sounds like a problem. 😉 The option button might be a good way to go. It would need to default to the old behaviour, so people can upgrade without fear. 😄 |
Hey @KimBioInfoStudio |
Thanks for completing this @KimBioInfoStudio, and thanks @AndrewChubatiuk for reviewing. 😄 |
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.
Going with @AndrewChubatiuk's review conclusion. 😉
the original code only flatten 2d-dict, if there are some dict more than 2d, hard to qurey data and viz
TODO: