You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/03/20 19:49:00 UTC

[jira] [Commented] (ARROW-2328) Writing a slice with feather ignores the offset

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

ASF GitHub Bot commented on ARROW-2328:
---------------------------------------

xhochy commented on a change in pull request #1766: ARROW-2328: [C++] Writing a slice with feather ignores the offset.
URL: https://github.com/apache/arrow/pull/1766#discussion_r175899893
 
 

 ##########
 File path: cpp/src/arrow/ipc/feather.cc
 ##########
 @@ -603,7 +602,12 @@ class TableWriter::TableWriterImpl : public ArrayVisitor {
       }
 
       if (prim_values.values()) {
-        values_buffer = prim_values.values()->data();
+        if (prim_values.offset() != 0 && (fw_type.bit_width() % 8 != 0)) {
+          return arrow::Status::Invalid(
 
 Review comment:
   This should be NotImplemented. We should be able to write them someday.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> Writing a slice with feather ignores the offset
> -----------------------------------------------
>
>                 Key: ARROW-2328
>                 URL: https://issues.apache.org/jira/browse/ARROW-2328
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: C++
>    Affects Versions: 0.8.0
>            Reporter: Adrian
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 0.9.0
>
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> Writing a slice from row n of length m of an array to feather would write the first m rows, instead of the rows starting at n.
> I've created a pull request with tests and fix here: [Pullrequest#1766|https://github.com/apache/arrow/pull/1766]
>  
>  



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