morrySnow opened a new pull request, #67483:
URL: https://github.com/apache/doris/pull/67483
### What problem does this PR solve?
Issue Number: N/A
Related PR: N/A
Problem Summary:
The `org.apache.doris.statistics` package mixed optimizer-facing statistics
models with collection workflows, cache internals, and statistics-table
persistence, making class ownership difficult to identify.
This PR reorganizes those classes by responsibility:
- keeps optimizer-facing statistics values, builders, ranges, and shared
constants in `statistics`;
- moves collection jobs, tasks, scheduling, metadata, and update events to
`statistics.analysis`;
- moves cache loaders, keys, invalidation, refresh, and synchronization
targets to `statistics.cache`;
- moves internal statistics-table access, persisted row models, and cleanup
to `statistics.repository`;
- mirrors the same package layout in unit tests and documents the boundaries
in `README.md` and `package-info.java`.
No runtime logic or persisted field format changes.
### Release note
None
### Check List (For Author)
- Test
- [ ] Regression test
- [x] Unit Test
- [ ] Manual test (add detailed scripts or steps below)
- [ ] No need to test or manual test. Explain why:
- [ ] This is a refactor/code format and no logic has been changed.
- [ ] Previous test can cover this change.
- [ ] No code files have been changed.
- [ ] Other reason
- Behavior changed:
- [x] No.
- [ ] Yes.
- Does this need documentation?
- [x] No.
- [ ] Yes.
### Test result
- Statistics-related FE unit tests: 109 passed.
- `MVN_OPT=-Dmaven.test.skip=true ./build.sh --fe`: passed with 0 Checkstyle
violations.
--
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]