This is an automated email from the ASF dual-hosted git repository. zhangstar333 pushed a commit to branch branch-2.0 in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.0 by this push: new 26266388dc0 [cherry-pick](column) support append_data_by_selector function in const column (#29996) (#30845) 26266388dc0 is described below commit 26266388dc0e1c85568cd099a465af2872d0cec4 Author: zhangstar333 <87313068+zhangstar...@users.noreply.github.com> AuthorDate: Tue Feb 6 14:06:25 2024 +0800 [cherry-pick](column) support append_data_by_selector function in const column (#29996) (#30845) cherry-pick from master #29996 --- be/src/vec/columns/column_const.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/be/src/vec/columns/column_const.h b/be/src/vec/columns/column_const.h index a3b9cd4de58..0f414cca3f8 100644 --- a/be/src/vec/columns/column_const.h +++ b/be/src/vec/columns/column_const.h @@ -63,7 +63,7 @@ namespace doris::vectorized { class ColumnConst final : public COWHelper<IColumn, ColumnConst> { private: friend class COWHelper<IColumn, ColumnConst>; - + using Self = ColumnConst; WrappedPtr data; size_t s; @@ -223,7 +223,7 @@ public: void append_data_by_selector(MutableColumnPtr& res, const IColumn::Selector& selector) const override { - LOG(FATAL) << "append_data_by_selector is not supported in ColumnConst!"; + assert_cast<Self&>(*res).resize(selector.size()); } void get_extremes(Field& min, Field& max) const override { data->get_extremes(min, max); } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org