Skip to content

Commit f5daeae

Browse files
committed
fix typo, update text
1 parent 0fd7f68 commit f5daeae

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

R/pkg/R/SQLContext.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,8 +334,8 @@ setMethod("toDF", signature(x = "RDD"),
334334
#'
335335
#' Loads a JSON file, returning the result as a SparkDataFrame
336336
#' By default, (\href{http://jsonlines.org/}{JSON Lines text format or newline-delimited JSON}
337-
#' ) is supported. For JSON (one record per file), set a named paramter \code{wholeFile} to
338-
#' \code{true}.
337+
#' ) is supported. For JSON (one record per file), set a named property \code{wholeFile} to
338+
#' \code{TRUE}.
339339
#' It goes through the entire dataset once to determine the schema.
340340
#'
341341
#' @param path Path of file to read. A vector of multiple paths is allowed.

docs/sql-programming-guide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -917,7 +917,7 @@ Note that the file that is offered as _a json file_ is not a typical JSON file.
917917
line must contain a separate, self-contained valid JSON object. For more information, please see
918918
[JSON Lines text format, also called newline-delimited JSON](http://jsonlines.org/).
919919

920-
For a regular multi-line JSON file, set the `wholeFile` parameter to `true`.
920+
For a regular multi-line JSON file, set the `wholeFile` parameter to `True`.
921921

922922
{% include_example json_dataset python/sql/datasource.py %}
923923
</div>
@@ -931,7 +931,7 @@ Note that the file that is offered as _a json file_ is not a typical JSON file.
931931
line must contain a separate, self-contained valid JSON object. For more information, please see
932932
[JSON Lines text format, also called newline-delimited JSON](http://jsonlines.org/).
933933

934-
For a regular multi-line JSON file, add a named parameter `wholeFile` to `true`.
934+
For a regular multi-line JSON file, set a named parameter `wholeFile` to `TRUE`.
935935

936936
{% include_example json_dataset r/RSparkSQLExample.R %}
937937

0 commit comments

Comments
 (0)