This is an automated email from the ASF dual-hosted git repository. lihaopeng pushed a commit to branch vectorized in repository https://gitbox.apache.org/repos/asf/incubator-doris.git
commit 8a1a6126b4c387eaa678f4a65e773d795e021f0a Author: Zeno Yang <cookie...@qq.com> AuthorDate: Mon Jan 17 20:27:13 2022 +0800 [Vectorized](compile) Fix compile error and warning (#7780) --- be/src/vec/columns/column.h | 1 + be/src/vec/functions/function.h | 3 +++ be/src/vec/functions/function_grouping.cpp | 4 ++-- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/be/src/vec/columns/column.h b/be/src/vec/columns/column.h index d58979d..71b86ae 100644 --- a/be/src/vec/columns/column.h +++ b/be/src/vec/columns/column.h @@ -220,6 +220,7 @@ public: */ virtual Ptr filter_by_selector(const uint16_t* sel, size_t sel_size, Ptr* ptr = nullptr) { LOG(FATAL) << "column not support filter_by_selector"; + __builtin_unreachable(); }; /// Permutes elements using specified permutation. Is used in sortings. diff --git a/be/src/vec/functions/function.h b/be/src/vec/functions/function.h index bc76a10..cf00c08 100644 --- a/be/src/vec/functions/function.h +++ b/be/src/vec/functions/function.h @@ -404,6 +404,7 @@ public: const ColumnNumbers& /*arguments*/, size_t /*result*/) const final { LOG(FATAL) << "prepare is not implemented for IFunction"; + __builtin_unreachable(); } Status prepare(FunctionContext* context, FunctionContext::FunctionStateScope scope) override { @@ -412,10 +413,12 @@ public: [[noreturn]] const DataTypes& get_argument_types() const final { LOG(FATAL) << "get_argument_types is not implemented for IFunction"; + __builtin_unreachable(); } [[noreturn]] const DataTypePtr& get_return_type() const final { LOG(FATAL) << "get_return_type is not implemented for IFunction"; + __builtin_unreachable(); } protected: diff --git a/be/src/vec/functions/function_grouping.cpp b/be/src/vec/functions/function_grouping.cpp index 763dec2..07872ee 100644 --- a/be/src/vec/functions/function_grouping.cpp +++ b/be/src/vec/functions/function_grouping.cpp @@ -15,11 +15,11 @@ // specific language governing permissions and limitations // under the License. -#include "function_grouping.h" +#include "vec/functions/function_grouping.h" namespace doris::vectorized { void register_function_grouping(SimpleFunctionFactory& factory) { factory.register_function<FunctionGrouping>(); factory.register_function<FunctionGroupingId>(); } -} +} // namespace doris::vectorized --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org