neilramaswamy commented on code in PR #48853:
URL: https://github.com/apache/spark/pull/48853#discussion_r1847410933


##########
sql/core/src/test/scala/org/apache/spark/sql/streaming/TransformWithMapStateTTLSuite.scala:
##########
@@ -308,7 +310,6 @@ class TransformWithMapStateTTLSuite extends 
TransformWithStateTTLTest {
         AddData(inputStream, MapInputEvent("k1", "", 
"get_values_in_ttl_state", -1)),
         AdvanceManualClock(1 * 1000),
         CheckNewAnswer(
-          MapOutputEvent("k1", "key3", -1, isTTLValue = true, 123000),

Review Comment:
   Just looked. The test is verifying that the given user-key, `key3`, has its 
new update timestamp in the secondary index. The old (stale) one should be 
removed. Thus, 123000 is removed, and 126000 is the new one. This is map state, 
not list state, so the minimum isn't preserved.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to