[ 
https://issues.apache.org/jira/browse/ARROW-603?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15947676#comment-15947676
 ] 

Wes McKinney commented on ARROW-603:
------------------------------------

It would be good to do this in the {{RecordBatch}} ctor in debug builds to 
prevent common errors

> [C++] Add RecordBatch::Validate method that at least checks that schema 
> matches the array metadata
> --------------------------------------------------------------------------------------------------
>
>                 Key: ARROW-603
>                 URL: https://issues.apache.org/jira/browse/ARROW-603
>             Project: Apache Arrow
>          Issue Type: New Feature
>          Components: C++
>            Reporter: Wes McKinney
>             Fix For: 0.3.0
>
>
> If the data type in a schema does not match the array {{type()}} metadata, 
> this passes unchecked. It would be useful to have a function that can check 
> for this, and for this to run automatically in debug builds (i.e. inside a 
> {{DCHECK}})



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to