sgilmore10 opened a new issue, #37591:
URL: https://github.com/apache/arrow/issues/37591

   ### Describe the enhancement requested
   
   We should modify `arrow.type.Type` to inherit from 
`matlab.mixin.Heterogeneous` so that it's possible to create a nonscalar array 
containing different concrete subclasses of `arrow.type.Type`. 
   
   **Example**
   ```matlab
   >> float32Type = arrow.float32();
   >> timestampType = arrow.timestamp(TimeZone="Pacific/Fiji");
   >> typeArray = [float32Type timestampType]
   
   typeArray = 
   
     1×2 heterogeneous FixedWidthType (Float32Type, TimestampType) array with 
properties:
   
       ID
   ```
   
   Currently, running example above results in an error:
   
   ```matlab
   >> float32Type = arrow.float32();
   >> timestampType = arrow.timestamp(TimeZone="Pacific/Fiji");
   >> typeArray = [float32Type timestampType]
   Error using horzcat
   The following error occurred converting from arrow.type.TimestampType to 
arrow.type.Float32Type:
   Invalid argument at position 1. Value must be of type 
libmexclass.proxy.Proxy or be convertible to libmexclass.proxy.Proxy.
   ```
   
   
   ### 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]

Reply via email to