morrySnow commented on code in PR #64366:
URL: https://github.com/apache/doris/pull/64366#discussion_r3518733337


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/rules/expression/rules/FoldConstantRuleOnBE.java:
##########
@@ -309,7 +309,8 @@ private static Map<String, Expression> evalOnBE(Map<String, 
Map<String, TExpr>>
 
             TQueryGlobals queryGlobals = new TQueryGlobals();
             
queryGlobals.setNowString(TimeUtils.getDatetimeFormatWithTimeZone().format(LocalDateTime.now()));

Review Comment:
   Fixed in 3bd0f4ebf16. `FoldConstantRuleOnBE` now uses 
`CoordinatorContext.setQueryTime(...)` with 
`CoordinatorContext.getStatementStartTimeOrNow(context)`, so `now_string`, 
`timestamp_ms`, and `nano_seconds` are produced from the same statement 
instant. The timezone handling is still normalized before setting query 
globals, including the existing `CST` behavior.



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