[jira] [Created] (ARROW-12850) [R] is.nan() evaluates to null on Arrow null values

2021-05-21 Thread Ian Cook (Jira)
Ian Cook created ARROW-12850:


 Summary: [R] is.nan() evaluates to null on Arrow null values
 Key: ARROW-12850
 URL: https://issues.apache.org/jira/browse/ARROW-12850
 Project: Apache Arrow
  Issue Type: Improvement
  Components: R
Reporter: Ian Cook


{code}
> is.nan(NA_real_)
[1] FALSE 

> as.vector(is.nan(Scalar$create(NA_real_)))
[1] NA
{code}
There is a discrepancy here between the {{FALSE}} result in R and the {{null}} 
result in Arrow (which results in {{NA_logical_}} when converted to an R 
vector).

I don't think the {{is.nan}} C++ kernel should change here because this is just 
a quirk of R. For example, NumPy and pandas is consistent with the Arrow C++:
{code}
> np.isnan(pd.NA)

{code}
We could maybe consider adding a boolean option to the {{is.nan}} C++ kernel to 
control whether to consider nulls as {{NaN}}. 



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


[jira] [Created] (ARROW-12849) [C++] Implement scalar kernel function that computes "isin" for each element in a List array

2021-05-21 Thread Wes McKinney (Jira)
Wes McKinney created ARROW-12849:


 Summary: [C++] Implement scalar kernel function that computes 
"isin" for each element in a List array
 Key: ARROW-12849
 URL: https://issues.apache.org/jira/browse/ARROW-12849
 Project: Apache Arrow
  Issue Type: New Feature
  Components: C++
Reporter: Wes McKinney


The type signature would look like this:

{code}
(Array>, Scalar) -> Array
{code}



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


[jira] [Created] (ARROW-12848) [Release] Mail template points to 404

2021-05-21 Thread Jira
Jorge Leitão created ARROW-12848:


 Summary: [Release] Mail template points to 404
 Key: ARROW-12848
 URL: https://issues.apache.org/jira/browse/ARROW-12848
 Project: Apache Arrow
  Issue Type: Improvement
  Components: Developer Tools
Reporter: Jorge Leitão


The email template to send to the dev for vote yields

{code:java}
[4]: https://apache.jfrog.io/artifactory/arrow/centos-rc/4.0.1-rc1
[5]: https://apache.jfrog.io/artifactory/arrow/debian-rc/4.0.1-rc1
[6]: https://apache.jfrog.io/artifactory/arrow/python-rc/4.0.1-rc1
[7]: https://apache.jfrog.io/artifactory/arrow/ubuntu-rc/4.0.1-rc1
{code}

however, these are always 404, as the distros are directory-based. This should 
probably be without `/4.0.1-rc1`, since the 4.0.1-rc1 is split between the 
different sub-directories.




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


[jira] [Created] (ARROW-12847) [R] StructArray doesn't print field names

2021-05-21 Thread Nic Crane (Jira)
Nic Crane created ARROW-12847:
-

 Summary: [R] StructArray doesn't print field names
 Key: ARROW-12847
 URL: https://issues.apache.org/jira/browse/ARROW-12847
 Project: Apache Arrow
  Issue Type: Bug
  Components: R
Reporter: Nic Crane


As discussed here 
([https://github.com/apache/arrow/pull/10343#discussion_r634466016),] 
StructArray prints field names as "child 0" and "child 1".
{code:java}
> value_counts(Array$create(mtcars$cyl))
StructArray
>
-- is_valid: all not null
-- child 0 type: double
  [
6,
4,
8
  ]
-- child 1 type: int64
  [
7,
11,
14
  ]{code}
 



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