abhishekrb19 commented on code in PR #19386:
URL: https://github.com/apache/druid/pull/19386#discussion_r3230268244


##########
processing/src/test/java/org/apache/druid/math/expr/ExprTest.java:
##########
@@ -221,6 +221,27 @@ public void testEqualsContractForNullDoubleExpr()
                   .verify();
   }
 
+  /**
+   * now() depends on wall-clock time, so its cache key must not be stable 
across calls — otherwise queries containing
+   * now() can hit a stale cached result. NowExpression overrides {@link 
Expr#decorateCacheKeyBuilder} to mix in
+   * nanoTime, which makes any containing Expr produce a fresh key on every 
{@link Expr#getCacheKey()} call.

Review Comment:
   Removed this test doc altogether



-- 
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