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

Reimplement C++ dump APIs as deprecated. #5179

Merged
merged 19 commits into from
Jul 18, 2024
Merged

Conversation

kounelisagis
Copy link
Member

@kounelisagis kounelisagis commented Jul 11, 2024

[sc-32959]

Following #5026, dump C++ APIs were mistakenly deleted. This PR reimplements them as deprecated. operator<< remains the canonical interface.


TYPE: NO_HISTORY
DESC: Reimplement dump C++ APIs as deprecated.

@kounelisagis kounelisagis marked this pull request as ready for review July 11, 2024 08:46
@kounelisagis
Copy link
Member Author

@eric-hughes-tiledb, @teo-tsirpanis I think every check will pass. Python and R are confirmed to have no problems on this branch.

Copy link
Member

@teo-tsirpanis teo-tsirpanis left a comment

Choose a reason for hiding this comment

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

Left some questions and feedback. Feedback on the attribute code also applies to the other changed modules.

tiledb/api/c_api/attribute/attribute_api.cc Outdated Show resolved Hide resolved
tiledb/api/c_api/attribute/test/CMakeLists.txt Outdated Show resolved Hide resolved
tiledb/sm/cpp_api/attribute.h Show resolved Hide resolved
tiledb/api/c_api/attribute/attribute_api.cc Outdated Show resolved Hide resolved
tiledb/api/c_api/attribute/test/CMakeLists.txt Outdated Show resolved Hide resolved
tiledb/api/c_api/dimension/dimension_api.cc Outdated Show resolved Hide resolved
Comment on lines 31 to 32
this_target_object_libraries(capi_string)
this_target_object_libraries(capi_dimension_stub)
Copy link
Contributor

Choose a reason for hiding this comment

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

FYI. this_target_object_libraries takes a list, not just a single argument.

tiledb/api/c_api/domain/domain_api.cc Outdated Show resolved Hide resolved
tiledb/api/c_api_support/argument_validation.h Outdated Show resolved Hide resolved
@eddelbuettel
Copy link
Contributor

Just wanted to note that eg tiledb-py does not currently build again dev as I found out the hard way. I quickly locally commented out the four calls to dump() methods it has.

KiterLuc and others added 2 commits July 18, 2024 12:49
Remove duplicate entry.

Co-authored-by: Theodore Tsirpanis <[email protected]>
teo-tsirpanis and others added 2 commits July 18, 2024 15:30
…ders and wrap them with `#ifndef TILEDB_REMOVE_DEPRECATIONS`.
Copy link
Contributor

@eric-hughes-tiledb eric-hughes-tiledb left a comment

Choose a reason for hiding this comment

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

All the FILE * arguments need their validation restored. And this is the second time that "conversation was resolved" with neither comment nor code change.

@teo-tsirpanis teo-tsirpanis force-pushed the agis/fix-dump-cpp-apis-missing branch from ce7603a to 0b0822c Compare July 18, 2024 12:41
tiledb/sm/c_api/tiledb.cc Outdated Show resolved Hide resolved
tiledb/sm/c_api/tiledb.cc Outdated Show resolved Hide resolved
tiledb/sm/cpp_api/array_schema.h Show resolved Hide resolved
tiledb/sm/cpp_api/array_schema.h Show resolved Hide resolved
tiledb/sm/cpp_api/schema_base.h Show resolved Hide resolved
tiledb/sm/cpp_api/schema_base.h Show resolved Hide resolved
Copy link
Contributor

@eric-hughes-tiledb eric-hughes-tiledb left a comment

Choose a reason for hiding this comment

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

LGTM

CHECK(rc == TILEDB_INVALID_CONTEXT);
}
SECTION("null domain") {
auto rc{tiledb_domain_dump(ctx, nullptr, nullptr)};
tiledb_string_t* tdb_string;
auto rc{tiledb_domain_dump_str(ctx, nullptr, &tdb_string)};
CHECK(rc == TILEDB_ERR);
}
// SECTION("null FILE") is omitted. Null FILE* defaults to stderr
Copy link
Contributor

Choose a reason for hiding this comment

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

It's no longer the case that null FILE * defaults to anything. This should be updated, but it's not critical to do so in this PR.

@KiterLuc KiterLuc changed the title Reimplement C++ dump APIs as deprecated Reimplement C++ dump APIs as deprecated. Jul 18, 2024
@KiterLuc KiterLuc merged commit 6bad3ac into dev Jul 18, 2024
64 checks passed
@KiterLuc KiterLuc deleted the agis/fix-dump-cpp-apis-missing branch July 18, 2024 15:53
@kounelisagis
Copy link
Member Author

@eric-hughes-tiledb @KiterLuc @teo-tsirpanis thanks for this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants