anishshri-db commented on code in PR #45932: URL: https://github.com/apache/spark/pull/45932#discussion_r1558571847
########## sql/api/src/main/scala/org/apache/spark/sql/streaming/StatefulProcessorHandle.scala: ########## @@ -72,6 +72,26 @@ private[sql] trait StatefulProcessorHandle extends Serializable { */ def getListState[T](stateName: String, valEncoder: Encoder[T]): ListState[T] + /** + * Function to create new or return existing list state variable of given type + * with ttl. State values will not be returned past ttlDuration, and will be eventually removed + * from the state store. Any values in listState which have expired after ttlDuration will not + * returned on get() and will be eventually removed from the state. Review Comment: nit: `will not be returned` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org