You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now that the PR introducing the arrow.internal.validate.inex.numeric() function has been merged (#37150), we should use this utility function within the column() method of arrow.tabular.RecordBatch. Doing so will remove duplicate code from the code base.
Component(s)
MATLAB
The text was updated successfully, but these errors were encountered:
…he `column()` method of `arrow.tabular.RecordBatch` (#37156)
### Rationale for this change
Now that the PR introducing the `arrow.internal.validate.index.numeric()` function has been merged (#37150), we should use this utility function within the `column()` method of `arrow.tabular.RecordBatch`. Doing so will remove duplicate code from the code base.
### What changes are included in this PR?
1. Updated the `column()` method of `arrow.tabular.RecordBatch` to use `arrow.internal.validate.index.numeric()`.
### Are these changes tested?
Yes, these changes are covered by these two existing test classes:
1. `test/arrow/tabular/tRecordBatch.m`
2. `test/arrow/internal/validate/index/tNumeric.m`
In addition, I added a new test point to `tRecordBatch.m` called `ErrorIfNonPositiveIndex` to verify `arrow.internal.validate.index.numeric` is integrated correctly.
### Are there any user-facing changes?
No.
### Future Directions
1. In a future pull request, we will add support for indexing columns by name. Currently, the `column()` method only supports numeric indexing.
* Closes: #37155
Authored-by: Sarah Gilmore <sgilmore@mathworks.com>
Signed-off-by: Kevin Gurney <kgurney@mathworks.com>
…` in the `column()` method of `arrow.tabular.RecordBatch` (apache#37156)
### Rationale for this change
Now that the PR introducing the `arrow.internal.validate.index.numeric()` function has been merged (apache#37150), we should use this utility function within the `column()` method of `arrow.tabular.RecordBatch`. Doing so will remove duplicate code from the code base.
### What changes are included in this PR?
1. Updated the `column()` method of `arrow.tabular.RecordBatch` to use `arrow.internal.validate.index.numeric()`.
### Are these changes tested?
Yes, these changes are covered by these two existing test classes:
1. `test/arrow/tabular/tRecordBatch.m`
2. `test/arrow/internal/validate/index/tNumeric.m`
In addition, I added a new test point to `tRecordBatch.m` called `ErrorIfNonPositiveIndex` to verify `arrow.internal.validate.index.numeric` is integrated correctly.
### Are there any user-facing changes?
No.
### Future Directions
1. In a future pull request, we will add support for indexing columns by name. Currently, the `column()` method only supports numeric indexing.
* Closes: apache#37155
Authored-by: Sarah Gilmore <sgilmore@mathworks.com>
Signed-off-by: Kevin Gurney <kgurney@mathworks.com>
Describe the enhancement requested
Now that the PR introducing the
arrow.internal.validate.inex.numeric()
function has been merged (#37150), we should use this utility function within thecolumn()
method ofarrow.tabular.RecordBatch
. Doing so will remove duplicate code from the code base.Component(s)
MATLAB
The text was updated successfully, but these errors were encountered: