From 4586689ea9ed690f72104f052a7ab13c5e0af053 Mon Sep 17 00:00:00 2001 From: sgilmore10 <74676073+sgilmore10@users.noreply.github.com> Date: Fri, 25 Aug 2023 16:25:43 -0400 Subject: [PATCH] GH-37345: [MATLAB] Add function handle to `fromMATLAB` static construction methods to `TypeTraits` classes (#37370) ### Rationale for this change Each concrete `arrow.array.Array` subclass has an associated `fromMATLAB `static construction method. It would be helpful if the `TypeTraits` classes had access to these corresponding fromMATLAB methods. This would involve adding a new property like `ArrayStaticConstructor` to the TypeTraits classes. For example: ```matlab >> arrow.type.traits.Int8Traits ans = Int8Traits with properties: ArrayConstructor: @ arrow.array.Int8Array ArrayClassName: "arrow.array.Int8Array" ArrayProxyClassName: "arrow.array.proxy.Int8Array" ArrayStaticConstructor: @ arrow.array.Int8Array.fromMATLAB TypeConstructor: @ arrow.type.Int8Type TypeClassName: "arrow.type.Int8Type" TypeProxyClassName: "arrow.type.proxy.Int8Type" MatlabConstructor: @ int8 MatlabClassName: "int8" ``` ### What changes are included in this PR? 1. Added a new abstract property called `ArrayStaticConstructor` to the parent class `arrow.type.traits.TypeTraits`. 2. Defined the `ArrayStaticConstructor` property in all concrete classes of `ArrayStaticConstructor`. ### Are these changes tested? Yes. Added a new test case to abstract test class `hTypeTraits.m`. ### Are there any user-facing changes? No. * Closes: #37345 Authored-by: Sarah Gilmore Signed-off-by: Kevin Gurney --- matlab/src/matlab/+arrow/+type/+traits/BooleanTraits.m | 3 ++- matlab/src/matlab/+arrow/+type/+traits/Float32Traits.m | 3 ++- matlab/src/matlab/+arrow/+type/+traits/Float64Traits.m | 3 ++- matlab/src/matlab/+arrow/+type/+traits/Int16Traits.m | 3 ++- matlab/src/matlab/+arrow/+type/+traits/Int32Traits.m | 1 + matlab/src/matlab/+arrow/+type/+traits/Int64Traits.m | 3 ++- matlab/src/matlab/+arrow/+type/+traits/Int8Traits.m | 3 ++- matlab/src/matlab/+arrow/+type/+traits/StringTraits.m | 3 ++- matlab/src/matlab/+arrow/+type/+traits/Time32Traits.m | 1 + matlab/src/matlab/+arrow/+type/+traits/Time64Traits.m | 1 + matlab/src/matlab/+arrow/+type/+traits/TimestampTraits.m | 3 ++- matlab/src/matlab/+arrow/+type/+traits/TypeTraits.m | 1 + matlab/src/matlab/+arrow/+type/+traits/UInt16Traits.m | 3 ++- matlab/src/matlab/+arrow/+type/+traits/UInt32Traits.m | 3 ++- matlab/src/matlab/+arrow/+type/+traits/UInt64Traits.m | 3 ++- matlab/src/matlab/+arrow/+type/+traits/UInt8Traits.m | 3 ++- matlab/test/arrow/type/traits/hTypeTraits.m | 5 +++++ matlab/test/arrow/type/traits/tBooleanTraits.m | 1 + matlab/test/arrow/type/traits/tInt16Traits.m | 1 + matlab/test/arrow/type/traits/tInt32Traits.m | 1 + matlab/test/arrow/type/traits/tInt64Traits.m | 1 + matlab/test/arrow/type/traits/tInt8Traits.m | 1 + matlab/test/arrow/type/traits/tStringTraits.m | 1 + matlab/test/arrow/type/traits/tTime32Traits.m | 1 + matlab/test/arrow/type/traits/tTime64Traits.m | 1 + matlab/test/arrow/type/traits/tTimestampTraits.m | 1 + matlab/test/arrow/type/traits/tUInt16Traits.m | 1 + matlab/test/arrow/type/traits/tUInt32Traits.m | 1 + matlab/test/arrow/type/traits/tUInt64Traits.m | 1 + matlab/test/arrow/type/traits/tUInt8Traits.m | 1 + 30 files changed, 46 insertions(+), 12 deletions(-) diff --git a/matlab/src/matlab/+arrow/+type/+traits/BooleanTraits.m b/matlab/src/matlab/+arrow/+type/+traits/BooleanTraits.m index 82a8b6b1e28ba..76d4c5ac929ed 100644 --- a/matlab/src/matlab/+arrow/+type/+traits/BooleanTraits.m +++ b/matlab/src/matlab/+arrow/+type/+traits/BooleanTraits.m @@ -19,7 +19,8 @@ ArrayConstructor = @arrow.array.BooleanArray ArrayClassName = "arrow.array.BooleanArray" ArrayProxyClassName = "arrow.array.proxy.BooleanArray" - TypeConstructor = @arrow.type.BooleanType; + ArrayStaticConstructor = @arrow.array.BooleanArray.fromMATLAB + TypeConstructor = @arrow.type.BooleanType TypeClassName = "arrow.type.BooleanType" TypeProxyClassName = "arrow.type.proxy.BooleanType" MatlabConstructor = @logical diff --git a/matlab/src/matlab/+arrow/+type/+traits/Float32Traits.m b/matlab/src/matlab/+arrow/+type/+traits/Float32Traits.m index 7dc0d17474e2f..cbf78e3eaa17d 100644 --- a/matlab/src/matlab/+arrow/+type/+traits/Float32Traits.m +++ b/matlab/src/matlab/+arrow/+type/+traits/Float32Traits.m @@ -19,7 +19,8 @@ ArrayConstructor = @arrow.array.Float32Array ArrayClassName = "arrow.array.Float32Array" ArrayProxyClassName = "arrow.array.proxy.Float32Array" - TypeConstructor = @arrow.type.Float32Type; + ArrayStaticConstructor = @arrow.array.Float32Array.fromMATLAB + TypeConstructor = @arrow.type.Float32Type TypeClassName = "arrow.type.Float32Type" TypeProxyClassName = "arrow.type.proxy.Float32Type" MatlabConstructor = @single diff --git a/matlab/src/matlab/+arrow/+type/+traits/Float64Traits.m b/matlab/src/matlab/+arrow/+type/+traits/Float64Traits.m index 9c52634b2c942..387ed27639930 100644 --- a/matlab/src/matlab/+arrow/+type/+traits/Float64Traits.m +++ b/matlab/src/matlab/+arrow/+type/+traits/Float64Traits.m @@ -19,7 +19,8 @@ ArrayConstructor = @arrow.array.Float64Array ArrayClassName = "arrow.array.Float64Array" ArrayProxyClassName = "arrow.array.proxy.Float64Array" - TypeConstructor = @arrow.type.Float64Type; + ArrayStaticConstructor = @arrow.array.Float64Array.fromMATLAB + TypeConstructor = @arrow.type.Float64Type TypeClassName = "arrow.type.Float64Type" TypeProxyClassName = "arrow.type.proxy.Float64Type" MatlabConstructor = @double diff --git a/matlab/src/matlab/+arrow/+type/+traits/Int16Traits.m b/matlab/src/matlab/+arrow/+type/+traits/Int16Traits.m index 46b67b43c1783..04d7f8a2e5c46 100644 --- a/matlab/src/matlab/+arrow/+type/+traits/Int16Traits.m +++ b/matlab/src/matlab/+arrow/+type/+traits/Int16Traits.m @@ -19,7 +19,8 @@ ArrayConstructor = @arrow.array.Int16Array ArrayClassName = "arrow.array.Int16Array" ArrayProxyClassName = "arrow.array.proxy.Int16Array" - TypeConstructor = @arrow.type.Int16Type; + ArrayStaticConstructor = @arrow.array.Int16Array.fromMATLAB + TypeConstructor = @arrow.type.Int16Type TypeClassName = "arrow.type.Int16Type" TypeProxyClassName = "arrow.type.proxy.Int16Type" MatlabConstructor = @int16 diff --git a/matlab/src/matlab/+arrow/+type/+traits/Int32Traits.m b/matlab/src/matlab/+arrow/+type/+traits/Int32Traits.m index 4117271e50ff1..2edfc305c3694 100644 --- a/matlab/src/matlab/+arrow/+type/+traits/Int32Traits.m +++ b/matlab/src/matlab/+arrow/+type/+traits/Int32Traits.m @@ -19,6 +19,7 @@ ArrayConstructor = @arrow.array.Int32Array ArrayClassName = "arrow.array.Int32Array" ArrayProxyClassName = "arrow.array.proxy.Int32Array" + ArrayStaticConstructor = @arrow.array.Int32Array.fromMATLAB TypeConstructor = @arrow.type.Int32Type; TypeClassName = "arrow.type.Int32Type" TypeProxyClassName = "arrow.type.proxy.Int32Type" diff --git a/matlab/src/matlab/+arrow/+type/+traits/Int64Traits.m b/matlab/src/matlab/+arrow/+type/+traits/Int64Traits.m index e25da953aa0fc..889087b02d966 100644 --- a/matlab/src/matlab/+arrow/+type/+traits/Int64Traits.m +++ b/matlab/src/matlab/+arrow/+type/+traits/Int64Traits.m @@ -19,7 +19,8 @@ ArrayConstructor = @arrow.array.Int64Array ArrayClassName = "arrow.array.Int64Array" ArrayProxyClassName = "arrow.array.proxy.Int64Array" - TypeConstructor = @arrow.type.Int64Type; + ArrayStaticConstructor = @arrow.array.Int64Array.fromMATLAB + TypeConstructor = @arrow.type.Int64Type TypeClassName = "arrow.type.Int64Type" TypeProxyClassName = "arrow.type.proxy.Int64Type" MatlabConstructor = @int64 diff --git a/matlab/src/matlab/+arrow/+type/+traits/Int8Traits.m b/matlab/src/matlab/+arrow/+type/+traits/Int8Traits.m index 9f73bd2667e1b..e2040ae652863 100644 --- a/matlab/src/matlab/+arrow/+type/+traits/Int8Traits.m +++ b/matlab/src/matlab/+arrow/+type/+traits/Int8Traits.m @@ -19,7 +19,8 @@ ArrayConstructor = @arrow.array.Int8Array ArrayClassName = "arrow.array.Int8Array" ArrayProxyClassName = "arrow.array.proxy.Int8Array" - TypeConstructor = @arrow.type.Int8Type; + ArrayStaticConstructor = @arrow.array.Int8Array.fromMATLAB + TypeConstructor = @arrow.type.Int8Type TypeClassName = "arrow.type.Int8Type" TypeProxyClassName = "arrow.type.proxy.Int8Type" MatlabConstructor = @int8 diff --git a/matlab/src/matlab/+arrow/+type/+traits/StringTraits.m b/matlab/src/matlab/+arrow/+type/+traits/StringTraits.m index 0730657270129..ce2fdf97c8886 100644 --- a/matlab/src/matlab/+arrow/+type/+traits/StringTraits.m +++ b/matlab/src/matlab/+arrow/+type/+traits/StringTraits.m @@ -19,7 +19,8 @@ ArrayConstructor = @arrow.array.StringArray ArrayClassName = "arrow.array.StringArray" ArrayProxyClassName = "arrow.array.proxy.StringArray" - TypeConstructor = @arrow.type.StringType; + ArrayStaticConstructor = @arrow.array.StringArray.fromMATLAB + TypeConstructor = @arrow.type.StringType TypeClassName = "arrow.type.StringType" TypeProxyClassName = "arrow.type.proxy.StringType" MatlabConstructor = @string diff --git a/matlab/src/matlab/+arrow/+type/+traits/Time32Traits.m b/matlab/src/matlab/+arrow/+type/+traits/Time32Traits.m index 844740167c380..e665800c46c9d 100644 --- a/matlab/src/matlab/+arrow/+type/+traits/Time32Traits.m +++ b/matlab/src/matlab/+arrow/+type/+traits/Time32Traits.m @@ -19,6 +19,7 @@ ArrayConstructor = @arrow.array.Time32Array ArrayClassName = "arrow.array.Time32Array" ArrayProxyClassName = "arrow.array.proxy.Time32Array" + ArrayStaticConstructor = @arrow.array.Time32Array.fromMATLAB TypeConstructor = @arrow.type.Time32Type; TypeClassName = "arrow.type.Time32Type" TypeProxyClassName = "arrow.type.proxy.Time32Type" diff --git a/matlab/src/matlab/+arrow/+type/+traits/Time64Traits.m b/matlab/src/matlab/+arrow/+type/+traits/Time64Traits.m index f9108d6ac3879..7f46f3e4db464 100644 --- a/matlab/src/matlab/+arrow/+type/+traits/Time64Traits.m +++ b/matlab/src/matlab/+arrow/+type/+traits/Time64Traits.m @@ -19,6 +19,7 @@ ArrayConstructor = @arrow.array.Time64Array ArrayClassName = "arrow.array.Time64Array" ArrayProxyClassName = "arrow.array.proxy.Time64Array" + ArrayStaticConstructor = @arrow.array.Time64Array.fromMATLAB TypeConstructor = @arrow.type.Time64Type; TypeClassName = "arrow.type.Time64Type" TypeProxyClassName = "arrow.type.proxy.Time64Type" diff --git a/matlab/src/matlab/+arrow/+type/+traits/TimestampTraits.m b/matlab/src/matlab/+arrow/+type/+traits/TimestampTraits.m index 488a5e7314016..91fc7d263f7ae 100644 --- a/matlab/src/matlab/+arrow/+type/+traits/TimestampTraits.m +++ b/matlab/src/matlab/+arrow/+type/+traits/TimestampTraits.m @@ -19,7 +19,8 @@ ArrayConstructor = @arrow.array.TimestampArray ArrayClassName = "arrow.array.TimestampArray" ArrayProxyClassName = "arrow.array.proxy.TimestampArray" - TypeConstructor = @arrow.type.TimestampType; + ArrayStaticConstructor = @arrow.array.TimestampArray.fromMATLAB + TypeConstructor = @arrow.type.TimestampType TypeClassName = "arrow.type.TimestampType" TypeProxyClassName = "arrow.type.proxy.TimestampType" MatlabConstructor = @datetime diff --git a/matlab/src/matlab/+arrow/+type/+traits/TypeTraits.m b/matlab/src/matlab/+arrow/+type/+traits/TypeTraits.m index 54b8fc0a7709c..06380d6fe19f1 100644 --- a/matlab/src/matlab/+arrow/+type/+traits/TypeTraits.m +++ b/matlab/src/matlab/+arrow/+type/+traits/TypeTraits.m @@ -19,6 +19,7 @@ ArrayConstructor ArrayClassName ArrayProxyClassName + ArrayStaticConstructor TypeConstructor TypeClassName TypeProxyClassName diff --git a/matlab/src/matlab/+arrow/+type/+traits/UInt16Traits.m b/matlab/src/matlab/+arrow/+type/+traits/UInt16Traits.m index b90e6294ce0d8..039dac673d10e 100644 --- a/matlab/src/matlab/+arrow/+type/+traits/UInt16Traits.m +++ b/matlab/src/matlab/+arrow/+type/+traits/UInt16Traits.m @@ -19,7 +19,8 @@ ArrayConstructor = @arrow.array.UInt16Array ArrayClassName = "arrow.array.UInt16Array" ArrayProxyClassName = "arrow.array.proxy.UInt16Array" - TypeConstructor = @arrow.type.UInt16Type; + ArrayStaticConstructor = @arrow.array.UInt16Array.fromMATLAB + TypeConstructor = @arrow.type.UInt16Type TypeClassName = "arrow.type.UInt16Type" TypeProxyClassName = "arrow.type.proxy.UInt16Type" MatlabConstructor = @uint16 diff --git a/matlab/src/matlab/+arrow/+type/+traits/UInt32Traits.m b/matlab/src/matlab/+arrow/+type/+traits/UInt32Traits.m index ff79bd9579a3b..5254054792252 100644 --- a/matlab/src/matlab/+arrow/+type/+traits/UInt32Traits.m +++ b/matlab/src/matlab/+arrow/+type/+traits/UInt32Traits.m @@ -19,7 +19,8 @@ ArrayConstructor = @arrow.array.UInt32Array ArrayClassName = "arrow.array.UInt32Array" ArrayProxyClassName = "arrow.array.proxy.UInt32Array" - TypeConstructor = @arrow.type.UInt32Type; + ArrayStaticConstructor = @arrow.array.UInt32Array.fromMATLAB + TypeConstructor = @arrow.type.UInt32Type TypeClassName = "arrow.type.UInt32Type" TypeProxyClassName = "arrow.type.proxy.UInt32Type" MatlabConstructor = @uint32 diff --git a/matlab/src/matlab/+arrow/+type/+traits/UInt64Traits.m b/matlab/src/matlab/+arrow/+type/+traits/UInt64Traits.m index a6b0de37528a9..246ab4a7e954e 100644 --- a/matlab/src/matlab/+arrow/+type/+traits/UInt64Traits.m +++ b/matlab/src/matlab/+arrow/+type/+traits/UInt64Traits.m @@ -19,7 +19,8 @@ ArrayConstructor = @arrow.array.UInt64Array ArrayClassName = "arrow.array.UInt64Array" ArrayProxyClassName = "arrow.array.proxy.UInt64Array" - TypeConstructor = @arrow.type.UInt64Type; + ArrayStaticConstructor = @arrow.array.UInt64Array.fromMATLAB + TypeConstructor = @arrow.type.UInt64Type TypeClassName = "arrow.type.UInt64Type" TypeProxyClassName = "arrow.type.proxy.UInt64Type" MatlabConstructor = @uint64 diff --git a/matlab/src/matlab/+arrow/+type/+traits/UInt8Traits.m b/matlab/src/matlab/+arrow/+type/+traits/UInt8Traits.m index ff2377ff812c3..477fffd390bf3 100644 --- a/matlab/src/matlab/+arrow/+type/+traits/UInt8Traits.m +++ b/matlab/src/matlab/+arrow/+type/+traits/UInt8Traits.m @@ -19,7 +19,8 @@ ArrayConstructor = @arrow.array.UInt8Array ArrayClassName = "arrow.array.UInt8Array" ArrayProxyClassName = "arrow.array.proxy.UInt8Array" - TypeConstructor = @arrow.type.UInt8Type; + ArrayStaticConstructor = @arrow.array.UInt8Array.fromMATLAB + TypeConstructor = @arrow.type.UInt8Type TypeClassName = "arrow.type.UInt8Type" TypeProxyClassName = "arrow.type.proxy.UInt8Type" MatlabConstructor = @uint8 diff --git a/matlab/test/arrow/type/traits/hTypeTraits.m b/matlab/test/arrow/type/traits/hTypeTraits.m index df62fdd325f2f..7e6d2e34f1649 100644 --- a/matlab/test/arrow/type/traits/hTypeTraits.m +++ b/matlab/test/arrow/type/traits/hTypeTraits.m @@ -22,6 +22,7 @@ ArrayConstructor ArrayClassName ArrayProxyClassName + ArrayStaticConstructor TypeConstructor TypeClassName TypeProxyClassName @@ -53,6 +54,10 @@ function TestArrayProxyClassName(testCase) testCase.verifyEqual(testCase.Traits.ArrayProxyClassName, testCase.ArrayProxyClassName); end + function TestArrayStaticConstructor(testCase) + testCase.verifyEqual(testCase.Traits.ArrayStaticConstructor, testCase.ArrayStaticConstructor); + end + function TestTypeConstructor(testCase) testCase.verifyEqual(testCase.Traits.TypeConstructor, testCase.TypeConstructor); end diff --git a/matlab/test/arrow/type/traits/tBooleanTraits.m b/matlab/test/arrow/type/traits/tBooleanTraits.m index 859dc630a1fc7..0fc8ad6478a0a 100644 --- a/matlab/test/arrow/type/traits/tBooleanTraits.m +++ b/matlab/test/arrow/type/traits/tBooleanTraits.m @@ -20,6 +20,7 @@ ArrayConstructor = @arrow.array.BooleanArray ArrayClassName = "arrow.array.BooleanArray" ArrayProxyClassName = "arrow.array.proxy.BooleanArray" + ArrayStaticConstructor = @arrow.array.BooleanArray.fromMATLAB TypeConstructor = @arrow.type.BooleanType TypeClassName = "arrow.type.BooleanType" TypeProxyClassName = "arrow.type.proxy.BooleanType" diff --git a/matlab/test/arrow/type/traits/tInt16Traits.m b/matlab/test/arrow/type/traits/tInt16Traits.m index bde308d28e68a..7015e45075ef2 100644 --- a/matlab/test/arrow/type/traits/tInt16Traits.m +++ b/matlab/test/arrow/type/traits/tInt16Traits.m @@ -20,6 +20,7 @@ ArrayConstructor = @arrow.array.Int16Array ArrayClassName = "arrow.array.Int16Array" ArrayProxyClassName = "arrow.array.proxy.Int16Array" + ArrayStaticConstructor = @arrow.array.Int16Array.fromMATLAB TypeConstructor = @arrow.type.Int16Type TypeClassName = "arrow.type.Int16Type" TypeProxyClassName = "arrow.type.proxy.Int16Type" diff --git a/matlab/test/arrow/type/traits/tInt32Traits.m b/matlab/test/arrow/type/traits/tInt32Traits.m index 651f647455408..f8ea16b2d09a9 100644 --- a/matlab/test/arrow/type/traits/tInt32Traits.m +++ b/matlab/test/arrow/type/traits/tInt32Traits.m @@ -20,6 +20,7 @@ ArrayConstructor = @arrow.array.Int32Array ArrayClassName = "arrow.array.Int32Array" ArrayProxyClassName = "arrow.array.proxy.Int32Array" + ArrayStaticConstructor = @arrow.array.Int32Array.fromMATLAB TypeConstructor = @arrow.type.Int32Type TypeClassName = "arrow.type.Int32Type" TypeProxyClassName = "arrow.type.proxy.Int32Type" diff --git a/matlab/test/arrow/type/traits/tInt64Traits.m b/matlab/test/arrow/type/traits/tInt64Traits.m index 4f16c91eb4e09..149530476dd9a 100644 --- a/matlab/test/arrow/type/traits/tInt64Traits.m +++ b/matlab/test/arrow/type/traits/tInt64Traits.m @@ -20,6 +20,7 @@ ArrayConstructor = @arrow.array.Int64Array ArrayClassName = "arrow.array.Int64Array" ArrayProxyClassName = "arrow.array.proxy.Int64Array" + ArrayStaticConstructor = @arrow.array.Int64Array.fromMATLAB TypeConstructor = @arrow.type.Int64Type TypeClassName = "arrow.type.Int64Type" TypeProxyClassName = "arrow.type.proxy.Int64Type" diff --git a/matlab/test/arrow/type/traits/tInt8Traits.m b/matlab/test/arrow/type/traits/tInt8Traits.m index 3e767abbebba4..17217487e2704 100644 --- a/matlab/test/arrow/type/traits/tInt8Traits.m +++ b/matlab/test/arrow/type/traits/tInt8Traits.m @@ -20,6 +20,7 @@ ArrayConstructor = @arrow.array.Int8Array ArrayClassName = "arrow.array.Int8Array" ArrayProxyClassName = "arrow.array.proxy.Int8Array" + ArrayStaticConstructor = @arrow.array.Int8Array.fromMATLAB TypeConstructor = @arrow.type.Int8Type TypeClassName = "arrow.type.Int8Type" TypeProxyClassName = "arrow.type.proxy.Int8Type" diff --git a/matlab/test/arrow/type/traits/tStringTraits.m b/matlab/test/arrow/type/traits/tStringTraits.m index 68f061d1b031d..2f739c852e766 100644 --- a/matlab/test/arrow/type/traits/tStringTraits.m +++ b/matlab/test/arrow/type/traits/tStringTraits.m @@ -20,6 +20,7 @@ ArrayConstructor = @arrow.array.StringArray ArrayClassName = "arrow.array.StringArray" ArrayProxyClassName = "arrow.array.proxy.StringArray" + ArrayStaticConstructor = @arrow.array.StringArray.fromMATLAB TypeConstructor = @arrow.type.StringType TypeClassName = "arrow.type.StringType" TypeProxyClassName = "arrow.type.proxy.StringType" diff --git a/matlab/test/arrow/type/traits/tTime32Traits.m b/matlab/test/arrow/type/traits/tTime32Traits.m index 52e00a901aa3f..4f455330a75ec 100644 --- a/matlab/test/arrow/type/traits/tTime32Traits.m +++ b/matlab/test/arrow/type/traits/tTime32Traits.m @@ -22,6 +22,7 @@ ArrayConstructor = @arrow.array.Time32Array ArrayClassName = "arrow.array.Time32Array" ArrayProxyClassName = "arrow.array.proxy.Time32Array" + ArrayStaticConstructor = @arrow.array.Time32Array.fromMATLAB TypeConstructor = @arrow.type.Time32Type TypeClassName = "arrow.type.Time32Type" TypeProxyClassName = "arrow.type.proxy.Time32Type" diff --git a/matlab/test/arrow/type/traits/tTime64Traits.m b/matlab/test/arrow/type/traits/tTime64Traits.m index bc4e205b96c5d..80fb5ae8c006b 100644 --- a/matlab/test/arrow/type/traits/tTime64Traits.m +++ b/matlab/test/arrow/type/traits/tTime64Traits.m @@ -22,6 +22,7 @@ ArrayConstructor = @arrow.array.Time64Array ArrayClassName = "arrow.array.Time64Array" ArrayProxyClassName = "arrow.array.proxy.Time64Array" + ArrayStaticConstructor = @arrow.array.Time64Array.fromMATLAB TypeConstructor = @arrow.type.Time64Type TypeClassName = "arrow.type.Time64Type" TypeProxyClassName = "arrow.type.proxy.Time64Type" diff --git a/matlab/test/arrow/type/traits/tTimestampTraits.m b/matlab/test/arrow/type/traits/tTimestampTraits.m index 5f451c0631465..561808ef03e45 100644 --- a/matlab/test/arrow/type/traits/tTimestampTraits.m +++ b/matlab/test/arrow/type/traits/tTimestampTraits.m @@ -20,6 +20,7 @@ ArrayConstructor = @arrow.array.TimestampArray ArrayClassName = "arrow.array.TimestampArray" ArrayProxyClassName = "arrow.array.proxy.TimestampArray" + ArrayStaticConstructor = @arrow.array.TimestampArray.fromMATLAB TypeConstructor = @arrow.type.TimestampType TypeClassName = "arrow.type.TimestampType" TypeProxyClassName = "arrow.type.proxy.TimestampType" diff --git a/matlab/test/arrow/type/traits/tUInt16Traits.m b/matlab/test/arrow/type/traits/tUInt16Traits.m index 4a9eef6f2978d..9692d8ee85486 100644 --- a/matlab/test/arrow/type/traits/tUInt16Traits.m +++ b/matlab/test/arrow/type/traits/tUInt16Traits.m @@ -20,6 +20,7 @@ ArrayConstructor = @arrow.array.UInt16Array ArrayClassName = "arrow.array.UInt16Array" ArrayProxyClassName = "arrow.array.proxy.UInt16Array" + ArrayStaticConstructor = @arrow.array.UInt16Array.fromMATLAB TypeConstructor = @arrow.type.UInt16Type TypeClassName = "arrow.type.UInt16Type" TypeProxyClassName = "arrow.type.proxy.UInt16Type" diff --git a/matlab/test/arrow/type/traits/tUInt32Traits.m b/matlab/test/arrow/type/traits/tUInt32Traits.m index 227e42c4eb0ec..a14268e2ca1e9 100644 --- a/matlab/test/arrow/type/traits/tUInt32Traits.m +++ b/matlab/test/arrow/type/traits/tUInt32Traits.m @@ -20,6 +20,7 @@ ArrayConstructor = @arrow.array.UInt32Array ArrayClassName = "arrow.array.UInt32Array" ArrayProxyClassName = "arrow.array.proxy.UInt32Array" + ArrayStaticConstructor = @arrow.array.UInt32Array.fromMATLAB TypeConstructor = @arrow.type.UInt32Type TypeClassName = "arrow.type.UInt32Type" TypeProxyClassName = "arrow.type.proxy.UInt32Type" diff --git a/matlab/test/arrow/type/traits/tUInt64Traits.m b/matlab/test/arrow/type/traits/tUInt64Traits.m index 370e905f27736..f35899332c288 100644 --- a/matlab/test/arrow/type/traits/tUInt64Traits.m +++ b/matlab/test/arrow/type/traits/tUInt64Traits.m @@ -20,6 +20,7 @@ ArrayConstructor = @arrow.array.UInt64Array ArrayClassName = "arrow.array.UInt64Array" ArrayProxyClassName = "arrow.array.proxy.UInt64Array" + ArrayStaticConstructor = @arrow.array.UInt64Array.fromMATLAB TypeConstructor = @arrow.type.UInt64Type TypeClassName = "arrow.type.UInt64Type" TypeProxyClassName = "arrow.type.proxy.UInt64Type" diff --git a/matlab/test/arrow/type/traits/tUInt8Traits.m b/matlab/test/arrow/type/traits/tUInt8Traits.m index d93f9d3c1b942..af90df0633d3a 100644 --- a/matlab/test/arrow/type/traits/tUInt8Traits.m +++ b/matlab/test/arrow/type/traits/tUInt8Traits.m @@ -20,6 +20,7 @@ ArrayConstructor = @arrow.array.UInt8Array ArrayClassName = "arrow.array.UInt8Array" ArrayProxyClassName = "arrow.array.proxy.UInt8Array" + ArrayStaticConstructor = @arrow.array.UInt8Array.fromMATLAB TypeConstructor = @arrow.type.UInt8Type TypeClassName = "arrow.type.UInt8Type" TypeProxyClassName = "arrow.type.proxy.UInt8Type"