Skip to content

Commit f9221ad

Browse files
zero323rxin
authored andcommitted
[SPARK-14058][PYTHON] Incorrect docstring in Window.order
## What changes were proposed in this pull request? Replaces current docstring ("Creates a :class:`WindowSpec` with the partitioning defined.") with "Creates a :class:`WindowSpec` with the ordering defined." ## How was this patch tested? PySpark unit tests (no regression introduced). No changes to the code. Author: zero323 <matthew.szymkiewicz@gmail.com> Closes #11877 from zero323/order-by-description. (cherry picked from commit 8193a26) Signed-off-by: Reynold Xin <rxin@databricks.com>
1 parent 022e06d commit f9221ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/pyspark/sql/window.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def partitionBy(*cols):
6060
@since(1.4)
6161
def orderBy(*cols):
6262
"""
63-
Creates a :class:`WindowSpec` with the partitioning defined.
63+
Creates a :class:`WindowSpec` with the ordering defined.
6464
"""
6565
sc = SparkContext._active_spark_context
6666
jspec = sc._jvm.org.apache.spark.sql.expressions.Window.orderBy(_to_java_cols(cols))

0 commit comments

Comments
 (0)