github-actions[bot] commented on code in PR #66795:
URL: https://github.com/apache/doris/pull/66795#discussion_r4420097606


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/info/CreateMTMVInfo.java:
##########
@@ -97,7 +99,6 @@ public class CreateMTMVInfo extends CreateTableInfo {

Review Comment:
   [P1] Detect the base TIMESTAMPTZ column for EXPR partition normalization
   
   MTMVPartitionDefinition.analyzeAndTransferToMTMVPartitionInfo() stores the 
date_trunc source column in mvPartitionInfo.partitionCol (for PARTITION 
BY(day_ts) over date_trunc(ts, 'day'), that value is ts), while 
usesUtcTimeZonePartition() searches the MTMV output columns for that name. A 
definition that projects only date_trunc(ts, 'day') AS day_ts therefore returns 
false here, leaves the DDL zone (for example +08:00) in the persisted session 
map, and later refreshes the row under that zone even though 
MTMVPartitionExprDateTrunc created UTC-aligned partition boundaries. The 
refresh can fail to find a partition or route the row to the wrong day. 
Determine the type from mvPartitionInfo.getPctInfos()/the related base 
partition column (or the analyzed partition expression) and add a regression 
for this aliased shape, including REFRESH AUTO.



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