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

    https://github.com/apache/spark/pull/19495#discussion_r145202185
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/streaming/GroupState.scala ---
    @@ -205,92 +205,127 @@ trait GroupState[S] extends LogicalGroupState[S] {
       /** Get the state value as a scala Option. */
       def getOption: Option[S]
     
    -  /**
    -   * Update the value of the state. Note that `null` is not a valid value, 
and it throws
    -   * IllegalArgumentException.
    -   */
    -  @throws[IllegalArgumentException]("when updating with null")
    +  /** Update the value of the state. */
       def update(newState: S): Unit
     
       /** Remove this state. */
       def remove(): Unit
     
       /**
        * Whether the function has been called because the key has timed out.
    -   * @note This can return true only when timeouts are enabled in 
`[map/flatmap]GroupsWithStates`.
    +   * @note This can return true only when timeouts are enabled in 
`[map/flatmap]GroupsWithState`.
        */
       def hasTimedOut: Boolean
     
    +
    --- End diff --
    
    thats intentional. visually makes it easier to read. 


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to