You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@arrow.apache.org by "Bob (Jira)" <ji...@apache.org> on 2020/01/27 16:16:00 UTC
[jira] [Created] (ARROW-7690) Cannot write parquet to OutputStream
Bob created ARROW-7690:
--------------------------
Summary: Cannot write parquet to OutputStream
Key: ARROW-7690
URL: https://issues.apache.org/jira/browse/ARROW-7690
Project: Apache Arrow
Issue Type: Bug
Components: R
Affects Versions: 0.15.1
Reporter: Bob
The R package does not allow for the ability to write to a FileOutputStream.
Minimal testing code:
library(arrow)
tf1 <- arrow::FileOutputStream$create(path = "output.parquet")
arrow::write_parquet(data.frame(x = 1:5), tf1)
Throws error:
Error in inherits(sink, OutputStream) : 'what' must be a character vector
The issue appears to be in line 153 of parquet.R
if (is.character(sink)) {
sink <- FileOutputStream$create(sink)
on.exit(sink$close())
} *else if (!inherits(sink, OutputStream))* {
abort("sink must be a file path or an OutputStream")
}
Should be !inherits(sink,'OutputStream')
--
This message was sent by Atlassian Jira
(v8.3.4#803005)