Skip to content
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

Merged
merged 15 commits into from
Feb 13, 2025
Merged

Deprecate SinkCreator #49

merged 15 commits into from
Feb 13, 2025

Conversation

aliddell
Copy link
Member

Paving the way for writing to non-Sink classes. Depends on #47.

@aliddell aliddell force-pushed the create-sinks-as-functions branch from 06250fa to 203bf50 Compare January 22, 2025 22:00
Base automatically changed from common-construct-data-paths to main January 31, 2025 16:45
@aliddell aliddell requested a review from jeskesen February 3, 2025 18:40
@aliddell aliddell marked this pull request as ready for review February 3, 2025 18:40
Copy link
Contributor

@jeskesen jeskesen left a 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()) {
Copy link
Contributor

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()) {
Copy link
Contributor

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
Copy link
Contributor

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?

Copy link
Member Author

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
Copy link
Contributor

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?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, good catch.

@aliddell aliddell merged commit 945abad into main Feb 13, 2025
7 checks passed
@aliddell aliddell deleted the create-sinks-as-functions branch February 13, 2025 16:30
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants