diff options
Diffstat (limited to 'python/pyspark/sql/window.py')
-rw-r--r-- | python/pyspark/sql/window.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/pyspark/sql/window.py b/python/pyspark/sql/window.py index c74745c726..eaf4d7e986 100644 --- a/python/pyspark/sql/window.py +++ b/python/pyspark/sql/window.py @@ -64,7 +64,7 @@ class Window(object): Creates a :class:`WindowSpec` with the partitioning defined. """ sc = SparkContext._active_spark_context - jspec = sc._jvm.org.apache.spark.sql.expressions.Window.partitionBy(_to_java_cols(cols)) + jspec = sc._jvm.org.apache.spark.sql.expressions.Window.orderBy(_to_java_cols(cols)) return WindowSpec(jspec) |