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

[jira] [Commented] (ARROW-11434) Length kernel returns bytes not character length

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

Mike Seddon commented on ARROW-11434:
-------------------------------------

The function comments have been updated as part of https://github.com/apache/arrow/pull/9243 to clarify that `length` returns `bytes` not number of characters.

> Length kernel returns bytes not character length
> ------------------------------------------------
>
>                 Key: ARROW-11434
>                 URL: https://issues.apache.org/jira/browse/ARROW-11434
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Rust, Rust - DataFusion
>            Reporter: Mike Seddon
>            Assignee: Mike Seddon
>            Priority: Minor
>              Labels: pull-request-available
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> The rust `length` kernel currently counts number of bytes/octets rather than characters given that Arrow uses UTF8 encoding.
> This means that the result of the `length` kernel on a string like `josé` will be 5 bytes rather than 4 characters.



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