Skip to content

Commit ca62d81

Browse files
authored
DOCSP-51965: Fix schemaHints option (#266)
1 parent 792cdc0 commit ca62d81

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

source/batch-mode/batch-read-config.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,9 @@ You can configure the following properties when reading data from MongoDB in bat
160160
|
161161
| **Default:** ``false``
162162

163-
* - ``schemaHint``
163+
* - ``schemaHints``
164164
- | Specifies a partial schema of known field types to use when inferring
165-
the schema for the collection. To learn more about the ``schemaHint``
165+
the schema for the collection. To learn more about the ``schemaHints``
166166
option, see the :ref:`spark-schema-hint` section.
167167
|
168168
| **Default:** None

source/batch-mode/batch-read.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ Specify Known Fields with Schema Hints
6666
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6767

6868
You can specify a schema containing known field values to use during
69-
schema inference by specifying the ``schemaHint`` configuration option. You can
70-
specify the ``schemaHint`` option in any of the following Spark formats:
69+
schema inference by specifying the ``schemaHints`` configuration option. You can
70+
specify the ``schemaHints`` option in any of the following Spark formats:
7171

7272
.. list-table::
7373
:header-rows: 1
@@ -90,7 +90,7 @@ specify the ``schemaHint`` option in any of the following Spark formats:
9090
{ "name": "<field name>", "type": "<field type>", "nullable": <true/false> },
9191
{ "name": "<field name>", "type": "<field type>", "nullable": <true/false> }]}
9292

93-
The following example shows how to specify the ``schemaHint`` option in each
93+
The following example shows how to specify the ``schemaHints`` option in each
9494
format by using the Spark shell. The example specifies a string-valued field named
9595
``"value"`` and an integer-valued field named ``"count"``.
9696

@@ -114,7 +114,7 @@ format by using the Spark shell. The example specifies a string-valued field nam
114114
// Generate JSON format
115115
mySchema.json
116116

117-
You can also specify the ``schemaHint`` option in the Simple String DDL format,
117+
You can also specify the ``schemaHints`` option in the Simple String DDL format,
118118
or in JSON format by using PySpark, as shown in the following example:
119119

120120
.. code-block:: python

source/streaming-mode/streaming-read-config.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,9 @@ You can configure the following properties when reading data from MongoDB in str
133133
|
134134
| **Default:** ``false``
135135

136-
* - ``schemaHint``
136+
* - ``schemaHints``
137137
- | Specifies a partial schema of known field types to use when inferring
138-
the schema for the collection. To learn more about the ``schemaHint``
138+
the schema for the collection. To learn more about the ``schemaHints``
139139
option, see the :ref:`spark-schema-hint` section.
140140
|
141141
| **Default:** None

0 commit comments

Comments
 (0)