-
Notifications
You must be signed in to change notification settings - Fork 185
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
Fix check for out of bounds dimension in Dimension::dimension_ptr. #5094
Conversation
Anyone knows why that build is failing? The test I enabled doesn't seem to use deprecated APIs |
e329e06
to
7fcc6fb
Compare
@@ -36,18 +36,27 @@ | |||
#include "tiledb/sm/enums/datatype.h" | |||
#include "tiledb/sm/enums/layout.h" | |||
|
|||
#include "tiledb/api/c_api/context/context_api_internal.h" |
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 might cause the build issues?
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.
The issue was that the helpers header includes the CPP header which contains some deprecated declarations.
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.
We shouldn't add this header to a unit test.
#include <test/support/tdb_catch.h> | ||
|
||
using namespace tiledb; | ||
using namespace tiledb::common; | ||
using namespace tiledb::sm; | ||
using namespace tiledb::test; | ||
|
||
struct DomainFx : TemporaryDirectoryFixture {}; |
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 used?
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.
Yes, to get a context in a oneliner.
@@ -36,18 +36,27 @@ | |||
#include "tiledb/sm/enums/datatype.h" | |||
#include "tiledb/sm/enums/layout.h" | |||
|
|||
#include "tiledb/api/c_api/context/context_api_internal.h" |
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.
We shouldn't add this header to a unit test.
@@ -30,12 +30,16 @@ commence(unit_test array_schema) | |||
this_target_object_libraries(array_schema) | |||
# should be `this_target_include_directories`, when available | |||
target_include_directories(unit_array_schema PUBLIC ${TILEDB_SOURCE_ROOT}/test/support) | |||
if (NOT MSVC) | |||
target_compile_options(unit_array_schema PUBLIC -Wno-deprecated-declarations) | |||
endif() |
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.
Can we remove this now?
8f4dc27
to
bdc735d
Compare
Fix domain::dimension_ptr(int) out of bounds check.
Also adding a unit test to make sure the issue doesn't regress.
[sc-49597]
TYPE: BUG
DESC: Fix check for out of bounds dimension in Dimension::dimension_ptr.