thisisnic opened a new pull request #9950:
URL: https://github.com/apache/arrow/pull/9950
A couple of things I wanted to check are expected behaviour:
1. If I specify in the schema that a numeric column should be a string
column, I get the error `Error: Invalid: JSON parse error: Column(/third_col)
changed from string to number in row 0`
(e.g. if I run the following)
```
tf <- tempfile()
writeLines('
{ "hello": 3.5, "world": 2, "third_col": 99}
{ "hello": 3.25, "world": 5, "third_col": 98}
{ "hello": 3.125, "world": 8, "third_col": 97 }
{ "hello": 0.0, "world": 10, "third_col": 96}
', tf)
read_json_arrow(tf, schema = schema(third_col = float64(), world =
float64()))
```
2. As can be seen in the tests output (will delete the `print` statements
before this is merged), table columns are returned in the order specified in
the schema and then the columns not mentioned in the schema.
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]