-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[enhancement](function truncate) truncate can use column as scale argument #33157
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
[enhancement](function truncate) truncate can use column as scale argument #33157
Conversation
…ument (apache#32746) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
|
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
|
run buildall |
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.
clang-tidy made some suggestions
| public: | ||
| static FunctionPtr create() { return std::make_shared<FunctionTruncate>(); } | ||
|
|
||
| ColumnNumbers get_arguments_that_are_always_constant() const override { return {}; } |
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.
warning: function 'get_arguments_that_are_always_constant' should be marked [[nodiscard]] [modernize-use-nodiscard]
| ColumnNumbers get_arguments_that_are_always_constant() const override { return {}; } | |
| [[nodiscard]] ColumnNumbers get_arguments_that_are_always_constant() const override { return {}; } |
| ColumnNumbers get_arguments_that_are_always_constant() const override { return {}; } | ||
| // SELECT number, truncate(123.345, 1) FROM number("numbers"="10") | ||
| // should NOT behave like two column arguments, so we can not use const column default implementation | ||
| bool use_default_implementation_for_constants() const override { return false; } |
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.
warning: function 'use_default_implementation_for_constants' should be marked [[nodiscard]] [modernize-use-nodiscard]
| bool use_default_implementation_for_constants() const override { return false; } | |
| [[nodiscard]] bool use_default_implementation_for_constants() const override { return false; } |
| // specific language governing permissions and limitations | ||
| // under the License. | ||
|
|
||
| #include <gtest/gtest-message.h> |
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.
warning: 'gtest/gtest-message.h' file not found [clang-diagnostic-error]
#include <gtest/gtest-message.h>
^|
run buildall |
TPC-H: Total hot run time: 49618 ms |
TPC-DS: Total hot run time: 200160 ms |
|
TeamCity be ut coverage result: |
ClickBench: Total hot run time: 30.86 s |
|
Load test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G' |
|
run buildall |
TPC-H: Total hot run time: 49539 ms |
|
TeamCity be ut coverage result: |
TPC-DS: Total hot run time: 201841 ms |
ClickBench: Total hot run time: 30.36 s |
|
Load test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G' |
|
run buildall |
TPC-H: Total hot run time: 49738 ms |
|
TeamCity be ut coverage result: |
TPC-DS: Total hot run time: 201073 ms |
ClickBench: Total hot run time: 30.99 s |
|
Load test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G' |
pick #32746