Github user uncleGen commented on a diff in the pull request:

    https://github.com/apache/spark/pull/16818#discussion_r101187326
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/expressions/WindowSpec.scala ---
    @@ -180,16 +180,20 @@ class WindowSpec private[sql](
       private def between(typ: FrameType, start: Long, end: Long): WindowSpec 
= {
         val boundaryStart = start match {
           case 0 => CurrentRow
    -      case Long.MinValue => UnboundedPreceding
    -      case x if x < 0 => ValuePreceding(-start.toInt)
    -      case x if x > 0 => ValueFollowing(start.toInt)
    +      case x if x < Int.MinValue => UnboundedPreceding
    --- End diff --
    
    In fact, the type of `start` and `end` should not be `Long` here, but we 
can not change it for compatibility.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to