-
Notifications
You must be signed in to change notification settings - Fork 184
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
Show errant values in current-domain out-of-bounds error message #5421
Conversation
tiledb/sm/query/query.cc
Outdated
"domain {}.", | ||
range_str( | ||
range, array_schema_->domain().dimension_ptr(d)->type()), | ||
array_schema_->domain().dimension_ptr(d)->name(), |
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.
Shouldn't this be current_domain()
?
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 need the domain to get types. Those are wired through array_schema_
and current_domain
both. I can get them either way.
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.
@ihnorton correction: the domain is wired through the array_schema_
and the private ndrectangle_
of CurrentDomain
.
It is an invariant that they be the same domain in both places.
If you want to pursue the latter then we need to connect a domain accessor in CurrentDomain
which passes through the copy of the domain in its ndrectangle_
. Personally I don't see the benefit to doing the latter.
Even though we moved to C++ 20 a long time ago, it appears that in CI there are lots of builds using C++ 17. And I've introduced @ihnorton @teo-tsirpanis your thoughts please:
|
That's definitely not the case, we use C++20 language features like concepts without any problem. It looks like the compiler versions we are using do not have the library implemented. Better use fmt instead. |
34d9883
to
bc2d629
Compare
2f70b54
to
c97a166
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.
Thanks!
Found while debugging CI fails on #5421. --- TYPE: NO_HISTORY --------- Co-authored-by: Theodore Tsirpanis <[email protected]>
Thank you @teo-tsirpanis !! |
[sc-61579]
Before:
After:
TYPE: IMPROVEMENT
DESC: Show errant values in current-domain out-of-bounds error message