Skip to content

Commit

Permalink
MINOR: [R] Clarify read_json_arrow() docs
Browse files Browse the repository at this point in the history
A quick PR to clarify `read_json_arrow()` docs I found confusing while benchmarking. Specifically, specifies the function

- is for ndjson (as opposed to say the many json formats to which pandas can write a dataframe)
- handles compression
- handles implicit and explicit nulls (was in the example, but not previously stated)

Open to changes, but do feel these docs need to at least explicitly say "ndjson" somewhere.

Closes apache#13133 from alistaire47/chore/read-json-docs

Lead-authored-by: Edward Visel <[email protected]>
Co-authored-by: Neal Richardson <[email protected]>
Signed-off-by: Neal Richardson <[email protected]>
  • Loading branch information
alistaire47 and nealrichardson committed May 18, 2022
1 parent d2cbe9e commit 663dc32
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
6 changes: 5 additions & 1 deletion r/R/json.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@

#' Read a JSON file
#'
#' Using [JsonTableReader]
#' Wrapper around [JsonTableReader] to read a newline-delimited JSON (ndjson) file into a
#' data frame or Arrow Table.
#'
#' If passed a path, will detect and handle compression from the file extension
#' (e.g. `.json.gz`). Accepts explicit or implicit nulls.
#'
#' @inheritParams read_delim_arrow
#' @param schema [Schema] that describes the table.
Expand Down
7 changes: 6 additions & 1 deletion r/man/read_json_arrow.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 663dc32

Please sign in to comment.