From 4b399f2a668287a65508ebc00e0809c5de0eb3e2 Mon Sep 17 00:00:00 2001 From: eldenmoon <15605149486@163.com> Date: Tue, 10 Sep 2024 15:59:53 +0800 Subject: [PATCH] [Fix](Variant) implement some interface in ColumnNothing IColumnDummy implementation is not suitable for ColumnNothing in ColumnObject --- be/src/vec/columns/column_nothing.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/be/src/vec/columns/column_nothing.h b/be/src/vec/columns/column_nothing.h index 8a10eec8b6f36d7..87112b023dadcdf 100644 --- a/be/src/vec/columns/column_nothing.h +++ b/be/src/vec/columns/column_nothing.h @@ -32,6 +32,19 @@ class ColumnNothing final : public COWHelper { ColumnNothing(const ColumnNothing&) = default; + ColumnPtr permute(const Permutation& perm, size_t limit) const override { + return clone_dummy(limit ? std::min(s, limit) : s); + } + Field operator[](size_t) const override { + return {}; + } + void get(size_t, Field& f) const override { + f = {}; + } + void insert(const Field&) override { + ++s; + } + public: const char* get_family_name() const override { return "Nothing"; } MutableColumnPtr clone_dummy(size_t s_) const override { return ColumnNothing::create(s_); }