hakanuzum opened a new pull request, #62410:
URL: https://github.com/apache/doris/pull/62410
### What problem does this PR solve?
Issue Number: close #62395
Related PR: None
Problem Summary:
MTMV partition rollup currently supports `date_trunc(partition_col, unit)`
but cannot track lineage for hour-offset expressions. This blocks common
UTC-storage + local-day partitioning workflows such as:
- `date_trunc(date_add(k2, INTERVAL 3 HOUR), 'day')`
- `date_trunc(date_sub(k2, INTERVAL 3 HOUR), 'day')`
### Release note
Support MTMV partition rollup and partition increment check for
`date_trunc(date_add/date_sub(partition_col, INTERVAL N HOUR), unit)`.
### Check List (For Author)
- Test: Regression test / Unit Test
- Unit Test: `./run-fe-ut.sh --run
org.apache.doris.mtmv.MTMVRelatedPartitionDescRollUpGeneratorTest`
- Build: `MVN_OPT='-Dmaven.build.cache.enabled=false' ./build.sh --fe
--clean -j$(nproc)`
- Regression test: `./run-regression-test.sh --run -d mtmv_p0 -s
test_rollup_partition_mtmv_date_add` (requires running FE/BE regression
cluster; local run failed with connection refused when cluster was not started)
- Behavior changed: Yes (MTMV partition expression supports hour-offset
`date_add/date_sub` lineage under `date_trunc`)
- Does this need documentation: No
--
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]