You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Nic Crane (Jira)" <ji...@apache.org> on 2021/05/13 14:56:00 UTC

[jira] [Created] (ARROW-12777) [R] Add input type checking for match_arrow

Nic Crane created ARROW-12777:
---------------------------------

             Summary: [R] Add input type checking for match_arrow
                 Key: ARROW-12777
                 URL: https://issues.apache.org/jira/browse/ARROW-12777
             Project: Apache Arrow
          Issue Type: Improvement
          Components: R
            Reporter: Nic Crane


If I run:

 
{code:java}
tab <- Table$create(name = rownames(mtcars), mtcars)
match_arrow(Array$create("Valiant"), tab)
{code}
 

I get `Error: Unrecognized vector instance for type ENVSXP`

and if I run:
{code:java}
match_arrow(c("Valiant"), tab){code}
I get `Error in match(x, table, ...) : 'match' requires vector arguments `

This is because in both cases, input parameters are not of the expected type.  We should add type checking and user-friendly error messages that indicate this.



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