Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions docs/sql-programming-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -1851,7 +1851,8 @@ You can access them by doing
<td> The value type in Scala of the data type of this field
(For example, Int for a StructField with the data type IntegerType) </td>
<td>
StructField(<i>name</i>, <i>dataType</i>, <i>nullable</i>)
StructField(<i>name</i>, <i>dataType</i>, [<i>nullable</i>])<br />
<b>Note:</b> The default value of <i>nullable</i> is <i>true</i>.
</td>
</tr>
</table>
Expand Down Expand Up @@ -2139,7 +2140,8 @@ from pyspark.sql.types import *
<td> The value type in Python of the data type of this field
(For example, Int for a StructField with the data type IntegerType) </td>
<td>
StructField(<i>name</i>, <i>dataType</i>, <i>nullable</i>)
StructField(<i>name</i>, <i>dataType</i>, [<i>nullable</i>])<br />
<b>Note:</b> The default value of <i>nullable</i> is <i>True</i>.
</td>
</tr>
</table>
Expand Down Expand Up @@ -2260,15 +2262,15 @@ from pyspark.sql.types import *
<td> vector or list </td>
<td>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In R, TRUE or FALSE is correct.

list(type="array", elementType=<i>elementType</i>, containsNull=[<i>containsNull</i>])<br />
<b>Note:</b> The default value of <i>containsNull</i> is <i>True</i>.
<b>Note:</b> The default value of <i>containsNull</i> is <i>TRUE</i>.
</td>
</tr>
<tr>
<td> <b>MapType</b> </td>
<td> environment </td>
<td>
list(type="map", keyType=<i>keyType</i>, valueType=<i>valueType</i>, valueContainsNull=[<i>valueContainsNull</i>])<br />
<b>Note:</b> The default value of <i>valueContainsNull</i> is <i>True</i>.
<b>Note:</b> The default value of <i>valueContainsNull</i> is <i>TRUE</i>.
</td>
</tr>
<tr>
Expand All @@ -2285,7 +2287,8 @@ from pyspark.sql.types import *
<td> The value type in R of the data type of this field
(For example, integer for a StructField with the data type IntegerType) </td>
<td>
list(name=<i>name</i>, type=<i>dataType</i>, nullable=<i>nullable</i>)
list(name=<i>name</i>, type=<i>dataType</i>, nullable=[<i>nullable</i>])<br />
<b>Note:</b> The default value of <i>nullable</i> is <i>TRUE</i>.
</td>
</tr>
</table>
Expand Down