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

Sebastien Binet commented on ARROW-3637:
----------------------------------------

the value (-1) is masked (a "null" value.)

in python, you'd say perhaps `[1, 2, 3, None, 4, 5]`.

but there's no such thing in Go.

 

so... I'd be tempted to say the example is correct as it is, even though I'd be 
interested in ways to improve it if it isn't completely clear.

> [Go] typo in float64 slice example
> ----------------------------------
>
>                 Key: ARROW-3637
>                 URL: https://issues.apache.org/jira/browse/ARROW-3637
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Go
>            Reporter: James Walker
>            Priority: Trivial
>              Labels: pull-request-available
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> The example in the documentation states:
>  
> {code:java}
> // This example shows how one can slice an array.
> // The initial (float64) array is:
> // [1, 2, 3, (null), 4, 5]
> //
> // and the sub-slice is:
> // [3, (null), 4]
> {code}
> However, the initial array is actually `[1, 2, 3, -1, 4, 5]` and the 
> sub-slice is actually `[3, -1, 4]`.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to