You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by ma...@apache.org on 2014/12/01 23:04:23 UTC

spark git commit: [SQL][DOC] Date type in SQL programming guide

Repository: spark
Updated Branches:
  refs/heads/master 7b7995787 -> 5edbcbfb6


[SQL][DOC] Date type in SQL programming guide

Author: Daoyuan Wang <da...@intel.com>

Closes #3535 from adrian-wang/datedoc and squashes the following commits:

18ff1ed [Daoyuan Wang] [DOC] Date type


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/5edbcbfb
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/5edbcbfb
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/5edbcbfb

Branch: refs/heads/master
Commit: 5edbcbfb61703398a24ce5162a74aba04e365b0c
Parents: 7b79957
Author: Daoyuan Wang <da...@intel.com>
Authored: Mon Dec 1 14:03:57 2014 -0800
Committer: Michael Armbrust <mi...@databricks.com>
Committed: Mon Dec 1 14:04:07 2014 -0800

----------------------------------------------------------------------
 docs/sql-programming-guide.md | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/5edbcbfb/docs/sql-programming-guide.md
----------------------------------------------------------------------
diff --git a/docs/sql-programming-guide.md b/docs/sql-programming-guide.md
index c38ca55..85d446b 100644
--- a/docs/sql-programming-guide.md
+++ b/docs/sql-programming-guide.md
@@ -1057,6 +1057,7 @@ Spark SQL supports the vast majority of Hive features, such as:
   * `STRING`
   * `BINARY`
   * `TIMESTAMP`
+  * `DATE`
   * `ARRAY<>`
   * `MAP<>`
   * `STRUCT<>`
@@ -1157,6 +1158,7 @@ evaluated by the SQL execution engine.  A full list of the functions supported c
 * Datetime type
     - `TimestampType`: Represents values comprising values of fields year, month, day,
     hour, minute, and second.
+    - `DateType`: Represents values comprising values of fields year, month, day.
 * Complex types
     - `ArrayType(elementType, containsNull)`: Represents values comprising a sequence of
     elements with the type of `elementType`. `containsNull` is used to indicate if
@@ -1265,6 +1267,13 @@ import  org.apache.spark.sql._
   </td>
 </tr>
 <tr>
+  <td> <b>DateType</b> </td>
+  <td> java.sql.Date </td>
+  <td>
+  DateType
+  </td>
+</tr>
+<tr>
   <td> <b>ArrayType</b> </td>
   <td> scala.collection.Seq </td>
   <td>
@@ -1391,6 +1400,13 @@ please use factory methods provided in
   </td>
 </tr>
 <tr>
+  <td> <b>DateType</b> </td>
+  <td> java.sql.Date </td>
+  <td>
+  DataType.DateType
+  </td>
+</tr>
+<tr>
   <td> <b>ArrayType</b> </td>
   <td> java.util.List </td>
   <td>
@@ -1538,6 +1554,13 @@ from pyspark.sql import *
   </td>
 </tr>
 <tr>
+  <td> <b>DateType</b> </td>
+  <td> datetime.date </td>
+  <td>
+  DateType()
+  </td>
+</tr>
+<tr>
   <td> <b>ArrayType</b> </td>
   <td> list, tuple, or array </td>
   <td>


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org