diff --git a/source/batch-mode/batch-read-config.txt b/source/batch-mode/batch-read-config.txt index 4761adc..b6a1436 100644 --- a/source/batch-mode/batch-read-config.txt +++ b/source/batch-mode/batch-read-config.txt @@ -160,9 +160,9 @@ You can configure the following properties when reading data from MongoDB in bat | | **Default:** ``false`` - * - ``schemaHint`` + * - ``schemaHints`` - | Specifies a partial schema of known field types to use when inferring - the schema for the collection. To learn more about the ``schemaHint`` + the schema for the collection. To learn more about the ``schemaHints`` option, see the :ref:`spark-schema-hint` section. | | **Default:** None diff --git a/source/batch-mode/batch-read.txt b/source/batch-mode/batch-read.txt index fc03d63..c31dd78 100644 --- a/source/batch-mode/batch-read.txt +++ b/source/batch-mode/batch-read.txt @@ -66,8 +66,8 @@ Specify Known Fields with Schema Hints ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ You can specify a schema containing known field values to use during -schema inference by specifying the ``schemaHint`` configuration option. You can -specify the ``schemaHint`` option in any of the following Spark formats: +schema inference by specifying the ``schemaHints`` configuration option. You can +specify the ``schemaHints`` option in any of the following Spark formats: .. list-table:: :header-rows: 1 @@ -90,7 +90,7 @@ specify the ``schemaHint`` option in any of the following Spark formats: { "name": "", "type": "", "nullable": }, { "name": "", "type": "", "nullable": }]} -The following example shows how to specify the ``schemaHint`` option in each +The following example shows how to specify the ``schemaHints`` option in each format by using the Spark shell. The example specifies a string-valued field named ``"value"`` and an integer-valued field named ``"count"``. @@ -114,7 +114,7 @@ format by using the Spark shell. The example specifies a string-valued field nam // Generate JSON format mySchema.json -You can also specify the ``schemaHint`` option in the Simple String DDL format, +You can also specify the ``schemaHints`` option in the Simple String DDL format, or in JSON format by using PySpark, as shown in the following example: .. code-block:: python diff --git a/source/streaming-mode/streaming-read-config.txt b/source/streaming-mode/streaming-read-config.txt index 798439d..71d2036 100644 --- a/source/streaming-mode/streaming-read-config.txt +++ b/source/streaming-mode/streaming-read-config.txt @@ -133,9 +133,9 @@ You can configure the following properties when reading data from MongoDB in str | | **Default:** ``false`` - * - ``schemaHint`` + * - ``schemaHints`` - | Specifies a partial schema of known field types to use when inferring - the schema for the collection. To learn more about the ``schemaHint`` + the schema for the collection. To learn more about the ``schemaHints`` option, see the :ref:`spark-schema-hint` section. | | **Default:** None