Nicola Crane created ARROW-14412:
------------------------------------
Summary: [R] Better error handling for flight_put() when data arg
object is wrong type
Key: ARROW-14412
URL: https://issues.apache.org/jira/browse/ARROW-14412
Project: Apache Arrow
Issue Type: Improvement
Components: R
Reporter: Nicola Crane
Assignee: Nicola Crane
{{data}} arg should not be a Dataset object
{code:r}
# connect to post where Flight server is running
local_client <- flight_connect(host = "127.0.0.1", port = 8089)
# write data to partitioned file
write_dataset(mtcars, "cars_data", format = "parquet", partitioning = "cyl")
cars_dataset <- open_dataset("cars_data")
# Send the data
flight_put(
local_client,
data = cars_dataset,
path = "cars_data"
)
Error in r_to_py_impl(x, convert = convert) :
Unable to convert R object to Python type
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)