Uh oh!
There was an error while loading. Please reload this page.
[Refactor](type) use std::bit_cast to replace union-based type punning - #53135
Merged
Conversation
hello-stephen
commented
Jul 11, 2025
Contributor
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
zclllyybb
commented
Jul 11, 2025
ContributorAuthor
run buildall |
doris-robot
commented
Jul 11, 2025
TPC-H: Total hot run time: 33082 ms |
doris-robot
commented
Jul 11, 2025
TPC-DS: Total hot run time: 186386 ms |
doris-robot
commented
Jul 11, 2025
ClickBench: Total hot run time: 29.27 s |
doris-robot
commented
Jul 11, 2025
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
zclllyybb
commented
Jul 12, 2025
ContributorAuthor
run buildall |
doris-robot
commented
Jul 12, 2025
TPC-H: Total hot run time: 33275 ms |
doris-robot
commented
Jul 12, 2025
TPC-DS: Total hot run time: 187413 ms |
doris-robot
commented
Jul 12, 2025
ClickBench: Total hot run time: 29.27 s |
doris-robot
commented
Jul 12, 2025
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
Contributor
PR approved by at least one committer and no changes requested. |
Contributor
PR approved by anyone and no changes requested. |
Mryange
approved these changes
Jul 14, 2025
csun5285 added a commit
to csun5285/doris
that referenced
this pull request
May 15, 2026
…k / disabled test Follow-up to the previous two commits. Two latent breakages where code that doesn't ride the default build path still referenced classes deleted by this PR series: 1) be/benchmark/benchmark_zone_map_index.hpp `benchmark_test` (built only with `--benchmark`, default OFF) was wiring up its zone-map writer through the now-deleted `StorageFieldFactory::create`. Drop the wrapper and pass the `TabletColumn*` straight into `ZoneMapIndexWriter::create`, which is what the writer wants anyway after the previous commit's API change. Verified by RELEASE build of the `benchmark_test` target: our hpp compiles cleanly (the binary as a whole still fails on `binary_cast_benchmark.hpp`, but that is fallout from PR apache#53135 union-to-`std::bit_cast` migration and is out of scope here). 2) be/test/storage/segment/column_reader_writer_test.cpp This file is in the `# todo: need fix those ut` REMOVE_ITEM list of be/test/CMakeLists.txt and is not built. It was already broken on the deleted row-based `ColumnBlock` / `ColumnVectorBatch` API from a prior BE refactor; this PR series additionally killed `StorageField` and `CollectionValue` it referenced. Strip out the four pieces tied to the classes this PR deleted, leaving the rest of the file as-is for whoever eventually revives the legacy `ColumnBlock` paths: - the `test_array_nullable_data` helper (used CollectionValue + StorageFieldFactory) - TEST_F(test_array_type) (only caller of that helper) - TEST_F(test_single_empty_array) (constructed CollectionValue) - TEST_F(test_mixed_empty_arrays) (same) The file stays in REMOVE_ITEM so the build state is unchanged.
csun5285 added a commit
to csun5285/doris
that referenced
this pull request
May 20, 2026
…k / disabled test Follow-up to the previous two commits. Two latent breakages where code that doesn't ride the default build path still referenced classes deleted by this PR series: 1) be/benchmark/benchmark_zone_map_index.hpp `benchmark_test` (built only with `--benchmark`, default OFF) was wiring up its zone-map writer through the now-deleted `StorageFieldFactory::create`. Drop the wrapper and pass the `TabletColumn*` straight into `ZoneMapIndexWriter::create`, which is what the writer wants anyway after the previous commit's API change. Verified by RELEASE build of the `benchmark_test` target: our hpp compiles cleanly (the binary as a whole still fails on `binary_cast_benchmark.hpp`, but that is fallout from PR apache#53135 union-to-`std::bit_cast` migration and is out of scope here). 2) be/test/storage/segment/column_reader_writer_test.cpp This file is in the `# todo: need fix those ut` REMOVE_ITEM list of be/test/CMakeLists.txt and is not built. It was already broken on the deleted row-based `ColumnBlock` / `ColumnVectorBatch` API from a prior BE refactor; this PR series additionally killed `StorageField` and `CollectionValue` it referenced. Strip out the four pieces tied to the classes this PR deleted, leaving the rest of the file as-is for whoever eventually revives the legacy `ColumnBlock` paths: - the `test_array_nullable_data` helper (used CollectionValue + StorageFieldFactory) - TEST_F(test_array_type) (only caller of that helper) - TEST_F(test_single_empty_array) (constructed CollectionValue) - TEST_F(test_mixed_empty_arrays) (same) The file stays in REMOVE_ITEM so the build state is unchanged.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
the benchmark result upon actually means: these two ways both has no side-effect and could be optimized out.
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)