You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "kevingurney (via GitHub)" <gi...@apache.org> on 2023/08/15 18:19:45 UTC

[GitHub] [arrow] kevingurney opened a new pull request, #37184: GH-37182: [MATLAB] Add public `Schema` property to MATLAB `arrow.tabular.RecordBatch` class

kevingurney opened a new pull request, #37184:
URL: https://github.com/apache/arrow/pull/37184

   ### Rationale for this change
   
   To make it possible to query the field types and names of a `RecordBatch`, this pull request adds a public `Schema` property to the MATLAB `arrow.tabular.RecordBatch` class.
   
   ### What changes are included in this PR?
   
   1. Added a new public `Schema` property to the `arrow.tabular.RecordBatch` MATLAB class.
   
   ```matlab
   >> t = table(["A","B","C"]',[1,2,3]',[true,false,true]',VariableNames=["A", "B", "C"])
   
   t =
   
     3x3 table
   
        A     B      C  
       ___    _    _____
   
       "A"    1    true 
       "B"    2    false
       "C"    3    true 
   
   >> rb = arrow.recordbatch(t)
   
   rb = 
   
   A:   [
       "A",
       "B",
       "C"
     ]
   B:   [
       1,
       2,
       3
     ]
   C:   [
       true,
       false,
       true
     ]
   
   >> schema = rb.Schema
   
   schema = 
   
   A: string
   B: double
   C: bool
   
   >> schema.field(2).Name
   
   ans = 
   
       "B"
   
   >> schema.field(2).Type
   
   ans = 
   
     Float64Type with properties:
   
       ID: Float64
   ```
   
   ### Are these changes tested?
   
   Yes.
   
   1. Added new test cases verifying that the `Schema` property works as expected to `tRecordBatch.m`.
   
   ### Are there any user-facing changes?
   
   Yes.
   
   1. There is now a public `Schema` property on the `arrow.tabular.RecordBatch` MATLAB class.


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] kevingurney commented on pull request #37184: GH-37182: [MATLAB] Add public `Schema` property to MATLAB `arrow.tabular.RecordBatch` class

Posted by "kevingurney (via GitHub)" <gi...@apache.org>.
kevingurney commented on PR #37184:
URL: https://github.com/apache/arrow/pull/37184#issuecomment-1679420637

   +1 


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] kevingurney merged pull request #37184: GH-37182: [MATLAB] Add public `Schema` property to MATLAB `arrow.tabular.RecordBatch` class

Posted by "kevingurney (via GitHub)" <gi...@apache.org>.
kevingurney merged PR #37184:
URL: https://github.com/apache/arrow/pull/37184


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] conbench-apache-arrow[bot] commented on pull request #37184: GH-37182: [MATLAB] Add public `Schema` property to MATLAB `arrow.tabular.RecordBatch` class

Posted by "conbench-apache-arrow[bot] (via GitHub)" <gi...@apache.org>.
conbench-apache-arrow[bot] commented on PR #37184:
URL: https://github.com/apache/arrow/pull/37184#issuecomment-1681348244

   After merging your PR, Conbench analyzed the 5 benchmarking runs that have been run so far on merge-commit 0432aaed4deae54c6a9f82e3caee949fc9639f97.
   
   There were no benchmark performance regressions. 🎉
   
   The [full Conbench report](https://github.com/apache/arrow/runs/15959254717) has more details. It also includes information about possible false positives for unstable benchmarks that are known to sometimes produce them.


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org