Skip to content
Snippets Groups Projects
Commit e11eeb71 authored by Yin Huai's avatar Yin Huai Committed by Reynold Xin
Browse files

[SQL][Docs] Update SQL programming guide to show the correct default value of...

[SQL][Docs] Update SQL programming guide to show the correct default value of containsNull in an ArrayType

After #1889, the default value of `containsNull` in an `ArrayType` is `true`.

Author: Yin Huai <huai@cse.ohio-state.edu>

Closes #2374 from yhuai/containsNull and squashes the following commits:

dc609a3 [Yin Huai] Update the SQL programming guide to show the correct default value of containsNull in an ArrayType (the default value is true instead of false).
parent 2584ea5b
No related branches found
No related tags found
No related merge requests found
......@@ -1232,7 +1232,7 @@ import org.apache.spark.sql._
<td> scala.collection.Seq </td>
<td>
ArrayType(<i>elementType</i>, [<i>containsNull</i>])<br />
<b>Note:</b> The default value of <i>containsNull</i> is <i>false</i>.
<b>Note:</b> The default value of <i>containsNull</i> is <i>true</i>.
</td>
</tr>
<tr>
......@@ -1358,7 +1358,7 @@ please use factory methods provided in
<td> java.util.List </td>
<td>
DataType.createArrayType(<i>elementType</i>)<br />
<b>Note:</b> The value of <i>containsNull</i> will be <i>false</i><br />
<b>Note:</b> The value of <i>containsNull</i> will be <i>true</i><br />
DataType.createArrayType(<i>elementType</i>, <i>containsNull</i>).
</td>
</tr>
......@@ -1505,7 +1505,7 @@ from pyspark.sql import *
<td> list, tuple, or array </td>
<td>
ArrayType(<i>elementType</i>, [<i>containsNull</i>])<br />
<b>Note:</b> The default value of <i>containsNull</i> is <i>False</i>.
<b>Note:</b> The default value of <i>containsNull</i> is <i>True</i>.
</td>
</tr>
<tr>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment