-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Deprecate SinkCreator
#49
Conversation
…andalone function make_s3_sink.
06250fa
to
203bf50
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.
Some non-blocking comments...
std::shared_ptr<zarr::S3ConnectionPool> connection_pool, | ||
std::vector<std::unique_ptr<zarr::Sink>>& sinks) | ||
{ | ||
if (object_keys.empty()) { |
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.
Is this check necessary? The for loop will just be skipped at the bottom. Is it so the other error checks get skipped if you passed in an empty vector?
std::shared_ptr<zarr::S3ConnectionPool> connection_pool, | ||
std::unordered_map<std::string, std::unique_ptr<zarr::Sink>>& sinks) | ||
{ | ||
if (object_keys.empty()) { |
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.
same question as above.
@@ -17,8 +17,8 @@ set(tests | |||
file-sink-write | |||
s3-sink-write | |||
s3-sink-write-multipart | |||
sink-creator-make-metadata-sinks |
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.
should sink-creator-* files get removed?
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.
They got renamed s/sink-creator-//g
.
sink-creator-make-metadata-sinks | ||
sink-creator-make-data-sinks | ||
make-data-sinks | ||
make-metadata-sinks |
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 are 2 new common-* that have not been added to CMakeLists.txt file. Intentional?
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.
Nope, good catch.
Paving the way for writing to non-
Sink
classes. Depends on #47.