[refactor](be) Use column check helper for type casts#63946
Conversation
### What problem does this PR solve?
Issue Number: None
Related PR: None
Problem Summary: Replace direct typeid_cast usage for Doris column type checks with the column-specific check_and_get_column helper. This keeps column downcast checks consistent across core column code, expression evaluation, storage segment code, and related table reader tests without changing behavior.
### Release note
None
### Check List (For Author)
- Test: Manual test
- Built BE with sh build.sh --be -j48
- Behavior changed: No
- Does this need documentation: No
|
/review |
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
There was a problem hiding this comment.
Review Summary
No blocking issues found. The changed call sites replace typeid_cast with check_and_get_column, whose current implementation delegates to the same typeid_cast overloads, so the reviewed paths preserve the previous null-on-mismatch behavior and const/mutable pointer semantics.
Critical checkpoint conclusions:
- Goal/test: The PR goal is a focused BE refactor for column type checks. The code accomplishes that goal. The PR body reports a BE build with
sh build.sh --be -j48; I did not rerun the full build in this review runner. - Scope/focus: The code change is small and focused in the actual GitHub diff.
- Concurrency/lifecycle: No new shared state, locking, threads, or lifecycle ownership changes were introduced.
- Configuration/compatibility: No config items, storage formats, RPC/thrift interfaces, or incompatible serialized formats changed.
- Parallel paths: The modified call sites are consistent with existing
check_and_get_columnusage in column helpers. - Error handling: Existing failure behavior is preserved;
check_array_offsets_columnstill throws on mismatch. - Tests: No new tests are needed for this mechanical refactor; touched tests were updated consistently.
- Observability/performance: No new observability need. Performance should be equivalent because the helper inlines to
typeid_cast. - Data correctness/MoW/transaction: No data visibility, delete bitmap, transaction, or persistence behavior changed.
User focus: No additional user-provided review focus was specified.
|
run buildall |
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
BE Regression && UT Coverage ReportIncrement line coverage Increment coverage report
|
TPC-H: Total hot run time: 28850 ms |
TPC-DS: Total hot run time: 170677 ms |
What problem does this PR solve?
Problem Summary: Replace direct typeid_cast usage for Doris column type checks with the column-specific check_and_get_column helper. This keeps column downcast checks consistent across core column code, expression evaluation, storage segment code, and related table reader tests without changing behavior.
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)