Skip to content

Conversation

@eldenmoon
Copy link
Member

…ns` is empty (apache#38364)

Set rows correct when subcolumns is empty, and implement resize method
with correct semantic
This fix the potential crash with stack bellow
```
6# doris::vectorized::ColumnObject::get(unsigned long, doris::vectorized::Field&) const at /root/doris/be/src/vec/columns/column_object.cpp:841
7# doris::vectorized::ColumnObject::operator[](unsigned long) const at /root/doris/be/src/vec/columns/column_object.cpp:838
8# doris::vectorized::ColumnObject::insert_from(doris::vectorized::IColumn const&, unsigned long) in /home/work/unlimit_teamcity/TeamCity/Agents/20240725170551agent_172.16.0.48_1/work/60183217f6ee2a9c/output/be/lib/doris_be
9# doris::vectorized::ColumnObject::insert_indices_from(doris::vectorized::IColumn const&, unsigned int const*, unsigned int const*) at /root/doris/be/src/vec/columns/column_object.cpp:1581
```
…t` (apache#38413)

1. storage type maybe missmatch with predicate type eg. cast(v['a'] as
date) = '2020-01-01'. v['a'] in storage is string type, but predicate
type is date type

2. serialization object with empty subcolumns may lost num_rows, so need
to record num_rows and set back num_rows in serdes
@doris-robot
Copy link

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

@eldenmoon
Copy link
Member Author

run buildall

@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 36.44% (9254/25398)
Line Coverage: 27.99% (75663/270342)
Region Coverage: 26.79% (38887/145134)
Branch Coverage: 23.52% (19733/83886)
Coverage Report: http://coverage.selectdb-in.cc/coverage/021acf084223c3430d4f02f746ceaa40a9faa0e7_021acf084223c3430d4f02f746ceaa40a9faa0e7/report/index.html

@xiaokang xiaokang merged commit aa9bdd7 into apache:branch-2.1 Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants