You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by GitBox <gi...@apache.org> on 2023/01/02 15:43:35 UTC

[GitHub] [arrow] OfekShilon opened a new issue, #15154: Failing to write_feather an R data.frame with column of mixed lists and NA

OfekShilon opened a new issue, #15154:
URL: https://github.com/apache/arrow/issues/15154

   ### Describe the bug, including details regarding any error messages, version, and platform.
   
   This works:
   ```r
   > df <- data.frame(a=1:4, b=I(list(1,1:2,1:3,1:4)))
   > arrow::write_feather(x=df, sink = "~/tmp/t1")
   ```
   
   While this fails:
   ```r
   > df <- data.frame(a=1:4, b=I(list(1,1:2,1:3,NA)))
   > arrow::write_feather(x=df, sink = "~/tmp/t2")
   Error: Invalid: cannot convert
   ```
   
   ### Component(s)
   
   R


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] thisisnic commented on issue #15154: [R] Failing to write_feather an R data.frame with column of mixed lists and NA

Posted by "thisisnic (via GitHub)" <gi...@apache.org>.
thisisnic commented on issue #15154:
URL: https://github.com/apache/arrow/issues/15154#issuecomment-1641786064

   I don't think this is something we can support; part of the process of writing a data.frame to a Feather file involves converting from R data.frame to Arrow Table, which also involves converting the types.  Given the purpose of the AsIs class is to prevent converting to another type, I don't see how/why we'd support this. Happy to consider other perspectives though.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] OfekShilon commented on issue #15154: Failing to write_feather an R data.frame with column of mixed lists and NA

Posted by GitBox <gi...@apache.org>.
OfekShilon commented on issue #15154:
URL: https://github.com/apache/arrow/issues/15154#issuecomment-1369479111

   All-NA columns also work:
   ```r
   df <- data.frame(a=1:4, b=NA)
   arrow::write_feather(x=df, sink = "~/tmp/t3")
   ```
   just mixed data/NA break.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] thisisnic closed issue #15154: [R] Failing to write_feather an R data.frame with column of mixed lists and NA

Posted by "thisisnic (via GitHub)" <gi...@apache.org>.
thisisnic closed issue #15154: [R] Failing to  write_feather an R data.frame with column of mixed lists and NA
URL: https://github.com/apache/arrow/issues/15154


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org