This is an automated email from the ASF dual-hosted git repository.
gurwls223 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/master by this push:
new 778774e8ea8 [MINOR][SQL][DOC] Fix doc for `WindowSpec.rowsBetween`
778774e8ea8 is described below
commit 778774e8ea8e0dff78f5cb03dc97afd68dadc0b2
Author: iRakson <[email protected]>
AuthorDate: Mon Jul 4 10:06:44 2022 +0900
[MINOR][SQL][DOC] Fix doc for `WindowSpec.rowsBetween`
### What changes were proposed in this pull request?
Fix Doc for `WindowSpec.rowsBetween`
### Why are the changes needed?
Given a row based sliding frame with a lower bound offset of -1 and a upper
bound offset of +2.
The frame for row with index 5 should range from index 4 to index 7. But
current doc says it would range from index 4 to index 6.
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Doc changes only.
Closes #37061 from iRakson/windowDocFix.
Authored-by: iRakson <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
---
R/pkg/R/WindowSpec.R | 2 +-
.../src/main/scala/org/apache/spark/sql/expressions/WindowSpec.scala | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/R/pkg/R/WindowSpec.R b/R/pkg/R/WindowSpec.R
index be47d0117ed..5c1de0beac3 100644
--- a/R/pkg/R/WindowSpec.R
+++ b/R/pkg/R/WindowSpec.R
@@ -135,7 +135,7 @@ setMethod("orderBy",
#' An offset indicates the number of rows above or below the current row, the
frame for the
#' current row starts or ends. For instance, given a row based sliding frame
with a lower bound
#' offset of -1 and a upper bound offset of +2. The frame for row with index 5
would range from
-#' index 4 to index 6.
+#' index 4 to index 7.
#'
#' @param x a WindowSpec
#' @param start boundary start, inclusive.
diff --git
a/sql/core/src/main/scala/org/apache/spark/sql/expressions/WindowSpec.scala
b/sql/core/src/main/scala/org/apache/spark/sql/expressions/WindowSpec.scala
index 93f48ab1990..32aa13a29ce 100644
--- a/sql/core/src/main/scala/org/apache/spark/sql/expressions/WindowSpec.scala
+++ b/sql/core/src/main/scala/org/apache/spark/sql/expressions/WindowSpec.scala
@@ -94,7 +94,7 @@ class WindowSpec private[sql](
* An offset indicates the number of rows above or below the current row,
the frame for the
* current row starts or ends. For instance, given a row based sliding frame
with a lower bound
* offset of -1 and a upper bound offset of +2. The frame for row with index
5 would range from
- * index 4 to index 6.
+ * index 4 to index 7.
*
* {{{
* import org.apache.spark.sql.expressions.Window
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]