kevingurney opened a new issue, #35693:
URL: https://github.com/apache/arrow/issues/35693
### Describe the enhancement requested
This is a follow up to #35676 and #35598 .
To allow users to clearly specify which values in an input MATLAB array
should be treated as null values when constructing an `arrow.array.Array`, it
would be helpful to add a `Valid` name-value pair to the `arrow.array.Array`
superclass constructor.
This name-value pair would correspond to the public `Valid` property which
encodes the validity bitmap (i.e. null values) in an `arrow.array.Array`
(proposed in #35598). This name-value pair would override any null detection
heuristics (i.e. it would override the behavior of `DetectNulls` and
`NullDetectionFcn`).
Adding this name-value pair would provide clients with a way to
unambiguously control null value handling behavior when constructing
`arrow.array.Array` objects.
**Example:**
```matlab
>> matlabArray = double([1, -1, -1, 3, 4, 5])'
matlabArray =
1
-1
-1
4
5
>> A = arrow.array.Float64Array(matlabArray, Valid=logical([true false,
false, true, true]))
A =
[
1,
null,
null,
4,
5
]
```
### Component(s)
MATLAB
--
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]