-
Notifications
You must be signed in to change notification settings - Fork 15
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
♻️(backends) use common utilities among backends #510
Conversation
1d6be41
to
20d7114
Compare
89b640a
to
37a9d32
Compare
20d7114
to
2257aba
Compare
37a9d32
to
09baf10
Compare
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.
This cleanup is very welcome !
Reviewed up to mongo backend.
Two of my comments don't apply to the code you changed but could be within the scope of this PR.
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.
(completing my previous review) This tidying is much appreciated !
2257aba
to
02aed1d
Compare
09baf10
to
71e038d
Compare
02aed1d
to
525f9c1
Compare
1fc4872
to
d5c7d3c
Compare
c7b75e3
to
d426d70
Compare
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.
d40480a
to
e609c67
Compare
During data backend unification work some shared utilities were developed to factorize duplication: `parse_dict_to_bytes`, `read_raw` and `iter_by_batch`. However, some backends still used their own implementation of these utilities leading to some minor behavioral differences among backends. Thus, for consistency, we update backends to use common utilities.
67b0601
to
89d588d
Compare
Purpose
During data backend unification work, some shared utilities were developed to factorize duplication:
parse_dict_to_bytes
,read_raw
anditer_by_batch
.However, some backends still used their own implementation of these utilities, leading to some minor behavioral differences among backends.
Proposal
parse_bytes_to_dict
more generic (parse_to_dict
) to improve re-usability (see usage in ClickHouseDataBackend).Note: This PR depends on #501