From de0b8acf5f4fbf311f770feb33cc388aabe27091 Mon Sep 17 00:00:00 2001 From: rui-mo Date: Mon, 24 Jul 2023 07:29:40 +0000 Subject: [PATCH] expand multi range constructor --- velox/type/Filter.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/velox/type/Filter.h b/velox/type/Filter.h index c71cbe133906..1d7be54461aa 100644 --- a/velox/type/Filter.h +++ b/velox/type/Filter.h @@ -1858,6 +1858,13 @@ class MultiRange final : public Filter { filters_(std::move(filters)), nanAllowed_(nanAllowed) {} + MultiRange( + std::vector> filters, + bool nullAllowed) + : Filter(true, nullAllowed, FilterKind::kMultiRange), + filters_(std::move(filters)), + nanAllowed_(true) {} + folly::dynamic serialize() const override; static FilterPtr create(const folly::dynamic& obj);