Skip to content

Commit dc609a3

Browse files
committed
Update the SQL programming guide to show the correct default value of containsNull in an ArrayType (the default value is true instead of false).
1 parent af25838 commit dc609a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/sql-programming-guide.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1232,7 +1232,7 @@ import org.apache.spark.sql._
12321232
<td> scala.collection.Seq </td>
12331233
<td>
12341234
ArrayType(<i>elementType</i>, [<i>containsNull</i>])<br />
1235-
<b>Note:</b> The default value of <i>containsNull</i> is <i>false</i>.
1235+
<b>Note:</b> The default value of <i>containsNull</i> is <i>true</i>.
12361236
</td>
12371237
</tr>
12381238
<tr>
@@ -1358,7 +1358,7 @@ please use factory methods provided in
13581358
<td> java.util.List </td>
13591359
<td>
13601360
DataType.createArrayType(<i>elementType</i>)<br />
1361-
<b>Note:</b> The value of <i>containsNull</i> will be <i>false</i><br />
1361+
<b>Note:</b> The value of <i>containsNull</i> will be <i>true</i><br />
13621362
DataType.createArrayType(<i>elementType</i>, <i>containsNull</i>).
13631363
</td>
13641364
</tr>
@@ -1505,7 +1505,7 @@ from pyspark.sql import *
15051505
<td> list, tuple, or array </td>
15061506
<td>
15071507
ArrayType(<i>elementType</i>, [<i>containsNull</i>])<br />
1508-
<b>Note:</b> The default value of <i>containsNull</i> is <i>False</i>.
1508+
<b>Note:</b> The default value of <i>containsNull</i> is <i>True</i>.
15091509
</td>
15101510
</tr>
15111511
<tr>

0 commit comments

Comments
 (0)