You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "github-actions[bot] (via GitHub)" <gi...@apache.org> on 2023/04/13 11:10:29 UTC

[GitHub] [doris] github-actions[bot] commented on a diff in pull request #18369: [Improvement](functions)Optimized some datetime function's return value

github-actions[bot] commented on code in PR #18369:
URL: https://github.com/apache/doris/pull/18369#discussion_r1165372150


##########
be/src/vec/functions/function.h:
##########
@@ -300,11 +302,14 @@ class IFunctionBuilder {
 
 using FunctionBuilderPtr = std::shared_ptr<IFunctionBuilder>;
 
+/// used in function_factory. when we register a function, save a builder. to get a function, to get a builder.
+/// will use DefaultFunctionBuilder as the default builder in function's registration if we didn't explicitly specify.
 class FunctionBuilderImpl : public IFunctionBuilder {
 public:
     FunctionBasePtr build(const ColumnsWithTypeAndName& arguments,
                           const DataTypePtr& return_type) const final {

Review Comment:
   warning: non-virtual member function marked 'final' hides virtual member function [clang-diagnostic-error]
   ```cpp
                             const DataTypePtr& return_type) const final {
                                                                   ^
   ```
   **be/src/vec/functions/function.h:285:** hidden overloaded virtual function 'doris::vectorized::IFunctionBuilder::build' declared here: different number of parameters (3 vs 2)
   ```cpp
       virtual FunctionBasePtr build(const ColumnsWithTypeAndName& arguments,
                               ^
   ```
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org