This is an automated email from the ASF dual-hosted git repository.

gurwls223 pushed a commit to branch branch-3.3
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/branch-3.3 by this push:
     new d8e157d0347 [SPARK-38017][FOLLOWUP][3.3] Hide TimestampNTZ in the doc
d8e157d0347 is described below

commit d8e157d0347f51c54e334fabe76072fc95332671
Author: Kousuke Saruta <saru...@oss.nttdata.com>
AuthorDate: Thu Sep 15 09:28:06 2022 +0900

    [SPARK-38017][FOLLOWUP][3.3] Hide TimestampNTZ in the doc
    
    ### What changes were proposed in this pull request?
    
    This PR removes `TimestampNTZ` from the doc about `TimeWindow` and 
`SessionWIndow`.
    
    ### Why are the changes needed?
    
    As we discussed, it's better to hide `TimestampNTZ` from the doc.
    https://github.com/apache/spark/pull/35313#issuecomment-1185192162
    
    ### Does this PR introduce _any_ user-facing change?
    
    The document will be changed, but there is no compatibility problem.
    
    ### How was this patch tested?
    
    Built the doc with `SKIP_RDOC=1 SKIP_SQLDOC=1 bundle exec jekyll build` at 
`doc` directory.
    Then, confirmed the generated HTML.
    
    Closes #37882 from sarutak/fix-window-doc-3.3.
    
    Authored-by: Kousuke Saruta <saru...@oss.nttdata.com>
    Signed-off-by: Hyukjin Kwon <gurwls...@apache.org>
---
 python/pyspark/sql/functions.py                              |  4 ++--
 sql/core/src/main/scala/org/apache/spark/sql/functions.scala | 10 +++++-----
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/python/pyspark/sql/functions.py b/python/pyspark/sql/functions.py
index ed3b0789b47..c8d7f9cdcb5 100644
--- a/python/pyspark/sql/functions.py
+++ b/python/pyspark/sql/functions.py
@@ -2557,7 +2557,7 @@ def window(
     ----------
     timeColumn : :class:`~pyspark.sql.Column`
         The column or the expression to use as the timestamp for windowing by 
time.
-        The time column must be of TimestampType or TimestampNTZType.
+        The time column must be of TimestampType.
     windowDuration : str
         A string specifying the width of the window, e.g. `10 minutes`,
         `1 second`. Check `org.apache.spark.unsafe.types.CalendarInterval` for
@@ -2632,7 +2632,7 @@ def session_window(timeColumn: "ColumnOrName", 
gapDuration: Union[Column, str])
     ----------
     timeColumn : :class:`~pyspark.sql.Column` or str
         The column name or column to use as the timestamp for windowing by 
time.
-        The time column must be of TimestampType or TimestampNTZType.
+        The time column must be of TimestampType.
     gapDuration : :class:`~pyspark.sql.Column` or str
         A Python string literal or column specifying the timeout of the 
session. It could be
         static value, e.g. `10 minutes`, `1 second`, or an expression/UDF that 
specifies gap
diff --git a/sql/core/src/main/scala/org/apache/spark/sql/functions.scala 
b/sql/core/src/main/scala/org/apache/spark/sql/functions.scala
index f6c3bc7e3ce..6dbbca67338 100644
--- a/sql/core/src/main/scala/org/apache/spark/sql/functions.scala
+++ b/sql/core/src/main/scala/org/apache/spark/sql/functions.scala
@@ -3645,7 +3645,7 @@ object functions {
    * processing time.
    *
    * @param timeColumn The column or the expression to use as the timestamp 
for windowing by time.
-   *                   The time column must be of TimestampType or 
TimestampNTZType.
+   *                   The time column must be of TimestampType.
    * @param windowDuration A string specifying the width of the window, e.g. 
`10 minutes`,
    *                       `1 second`. Check 
`org.apache.spark.unsafe.types.CalendarInterval` for
    *                       valid duration identifiers. Note that the duration 
is a fixed length of
@@ -3701,7 +3701,7 @@ object functions {
    * processing time.
    *
    * @param timeColumn The column or the expression to use as the timestamp 
for windowing by time.
-   *                   The time column must be of TimestampType or 
TimestampNTZType.
+   *                   The time column must be of TimestampType.
    * @param windowDuration A string specifying the width of the window, e.g. 
`10 minutes`,
    *                       `1 second`. Check 
`org.apache.spark.unsafe.types.CalendarInterval` for
    *                       valid duration identifiers. Note that the duration 
is a fixed length of
@@ -3746,7 +3746,7 @@ object functions {
    * processing time.
    *
    * @param timeColumn The column or the expression to use as the timestamp 
for windowing by time.
-   *                   The time column must be of TimestampType or 
TimestampNTZType.
+   *                   The time column must be of TimestampType.
    * @param windowDuration A string specifying the width of the window, e.g. 
`10 minutes`,
    *                       `1 second`. Check 
`org.apache.spark.unsafe.types.CalendarInterval` for
    *                       valid duration identifiers.
@@ -3774,7 +3774,7 @@ object functions {
    * processing time.
    *
    * @param timeColumn The column or the expression to use as the timestamp 
for windowing by time.
-   *                   The time column must be of TimestampType or 
TimestampNTZType.
+   *                   The time column must be of TimestampType.
    * @param gapDuration A string specifying the timeout of the session, e.g. 
`10 minutes`,
    *                    `1 second`. Check 
`org.apache.spark.unsafe.types.CalendarInterval` for
    *                    valid duration identifiers.
@@ -3811,7 +3811,7 @@ object functions {
    * processing time.
    *
    * @param timeColumn The column or the expression to use as the timestamp 
for windowing by time.
-   *                   The time column must be of TimestampType or 
TimestampNTZType.
+   *                   The time column must be of TimestampType.
    * @param gapDuration A column specifying the timeout of the session. It 
could be static value,
    *                    e.g. `10 minutes`, `1 second`, or an expression/UDF 
that specifies gap
    *                    duration dynamically based on the input row.


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

Reply via email to