spark-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From marmb...@apache.org
Subject spark git commit: [SQL][DOC] Date type in SQL programming guide
Date Mon, 01 Dec 2014 23:06:06 GMT
Repository: spark
Updated Branches:
  refs/heads/branch-1.2 31cf51bfa -> e66f81663


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

Author: Daoyuan Wang <daoyuan.wang@intel.com>

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

18ff1ed [Daoyuan Wang] [DOC] Date type

(cherry picked from commit 5edbcbfb61703398a24ce5162a74aba04e365b0c)
Signed-off-by: Michael Armbrust <michael@databricks.com>


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

Branch: refs/heads/branch-1.2
Commit: e66f8166334026cd5506a9b05ab52b73a96fd7f3
Parents: 31cf51b
Author: Daoyuan Wang <daoyuan.wang@intel.com>
Authored: Mon Dec 1 14:03:57 2014 -0800
Committer: Michael Armbrust <michael@databricks.com>
Committed: Mon Dec 1 15:06:02 2014 -0800

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


http://git-wip-us.apache.org/repos/asf/spark/blob/e66f8166/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


Mime
View raw message