Commits


sgilmore10 authored and GitHub committed 32659a2d0e9
GH-36874: [MATLAB] Move type constructor functions from the `arrow.type` package to `arrow` package (#36875) ### Rationale for this change When working on PR #36855, we realized it would be better to place all recommended public/user-facing APIs in the top-level `arrow` package. That's why we added the function `arrow.field` in the top-level `arrow` package instead of under `arrow.type`, even though the `Field` class is within `arrow.type` package. ### What changes are included in this PR? 1. Moved the type constructor functions (`arrow.type.int8()`, `arrow.type.timestamp()`, etc) from the `arrow.type` package to the `arrow package`. **Example: Old Way to Create a `Timestamp` Object:** ```matlab >> type = arrow.type.timestmap(TimeUnit="nanosecond"); ``` **Example: New Way to Create a `Timestamp` Object:** ```matlab >> type = arrow.timestmap(TimeUnit="nanosecond"); ``` ### Are these changes tested? Changes are covered by existing tests. ### Are there any user-facing changes? Yes. NOTE: This is a breaking change, but the MATLAB interface is not yet stable. * Closes: #36874 Authored-by: Sarah Gilmore <sgilmore@mathworks.com> Signed-off-by: Kevin Gurney <kgurney@mathworks.com>