[ 
https://issues.apache.org/jira/browse/ARROW-6507?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Antoine Pitrou updated ARROW-6507:
----------------------------------
    Description: 
>From discussing ARROW-6506, [~bkietz] said: an extension type might place more 
>constraints on an array than those implicit in its storage type, and users 
>will probably expect to be able to plug those into {{Validate}}.

So we could have a {{ExtensionType::ValidateArray}} (resp. 
{{ValidateArrayFull}}) that the visitor for {{ExtensionArray}} can call, 
similarly like there is also an {{ExtensionType::ExtensionEquals}} that the 
visitor calls when extension types are checked for equality.

  was:
>From discussing ARROW-6506, [~bkietz] said: an extension type might place more 
>constraints on an array than those implicit in its storage type, and users 
>will probably expect to be able to plug those into {{Validate}}.

So we could have a {{ExtensionArray::ExtensionValidate}} that the visitor for 
{{ExtensionArray}} can call, similarly like there is also an 
{{ExtensionType::ExtensionEquals}} that the visitor calls when extension types 
are checked for equality.


> [C++] Add ExtensionType::ValidateArray for custom validation?
> -------------------------------------------------------------
>
>                 Key: ARROW-6507
>                 URL: https://issues.apache.org/jira/browse/ARROW-6507
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: C++
>            Reporter: Joris Van den Bossche
>            Priority: Major
>
> From discussing ARROW-6506, [~bkietz] said: an extension type might place 
> more constraints on an array than those implicit in its storage type, and 
> users will probably expect to be able to plug those into {{Validate}}.
> So we could have a {{ExtensionType::ValidateArray}} (resp. 
> {{ValidateArrayFull}}) that the visitor for {{ExtensionArray}} can call, 
> similarly like there is also an {{ExtensionType::ExtensionEquals}} that the 
> visitor calls when extension types are checked for equality.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to