Skip to content

Commit

Permalink
[SPARK-14058][PYTHON] Incorrect docstring in Window.order
Browse files Browse the repository at this point in the history
## 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 <[email protected]>

Closes apache#11877 from zero323/order-by-description.
  • Loading branch information
zero323 authored and rxin committed Mar 22, 2016
1 parent 8014a51 commit 8193a26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/pyspark/sql/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def partitionBy(*cols):
@since(1.4)
def orderBy(*cols):
"""
Creates a :class:`WindowSpec` with the partitioning defined.
Creates a :class:`WindowSpec` with the ordering defined.
"""
sc = SparkContext._active_spark_context
jspec = sc._jvm.org.apache.spark.sql.expressions.Window.orderBy(_to_java_cols(cols))
Expand Down

0 comments on commit 8193a26

Please sign in to comment.