alamb opened a new pull request, #7027:
URL: https://github.com/apache/arrow-rs/pull/7027
# Which issue does this PR close?
- Follow on to refactor for unsafe flag: #6966
# Rationale for this change
As mentioned previously, the management of disabling validation must be
handled very carefully to ensure the overall API remains `safe`.
@tustvold suggested an approach that adds additional compile time checking
in https://github.com/apache/arrow-rs/pull/7006#pullrequestreview-2574041835,
in the form of an an extra layer of protection when modifying the flags. I
thought it was a great idea so figured I would start with it here
# What changes are included in this PR?
1. Introduce the `UnsafeFlag` type
2. Update `ArrayDataBuilder` to use it
# Are there any user-facing changes?
No, this is entirely internal
<!--
If there are user-facing changes then we may require documentation to be
updated before approving the PR.
-->
<!---
If there are any breaking changes to public APIs, please call them out.
-->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]