-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[refine](Column)Disallow implicit conversion of ColumnPtr to IColumn* #45588
base: master
Are you sure you want to change the base?
Conversation
run buildall |
|
7371ffe
to
2cb39cf
Compare
|
clang-tidy review says "All clean, LGTM! 👍" |
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
TeamCity be ut coverage result: |
run buildall |
TeamCity be ut coverage result: |
be/src/vec/common/cow.h
Outdated
#ifndef BE_TEST | ||
[[deprecated("Implicit conversion should not be used. Please use get() explicitly.")]] | ||
#endif | ||
operator T*() const { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
delete this code, no need to give warnings
2cb39cf
to
073c2e5
Compare
run buildall |
|
run buildall |
|
clang-tidy review says "All clean, LGTM! 👍" |
1 similar comment
clang-tidy review says "All clean, LGTM! 👍" |
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
run buildall |
TeamCity be ut coverage result: |
TPC-H: Total hot run time: 40133 ms
|
TPC-DS: Total hot run time: 197646 ms
|
ClickBench: Total hot run time: 32.15 s
|
run buildall |
TPC-H: Total hot run time: 40044 ms
|
TeamCity be ut coverage result: |
TPC-DS: Total hot run time: 196792 ms
|
ClickBench: Total hot run time: 33.63 s
|
run p0 |
What problem does this PR solve?
Previously, we allowed ColumnPtr to be directly converted to Column*:
ColumnPtr column; const IColumn* ptr = column;
This can easily cause confusion.
For example, in the following code:
The matched function is:
However, the actual type of const_column is:
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)