From 7356332aa12deb8fc234b587b8a0d466f646b7c0 Mon Sep 17 00:00:00 2001 From: Carlo Piovesan Date: Wed, 25 Sep 2024 11:05:44 +0200 Subject: [PATCH] Add unary_executor.patch --- patches/duckdb/unary_executor.patch | 37 +++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 patches/duckdb/unary_executor.patch diff --git a/patches/duckdb/unary_executor.patch b/patches/duckdb/unary_executor.patch new file mode 100644 index 000000000..5bf31a964 --- /dev/null +++ b/patches/duckdb/unary_executor.patch @@ -0,0 +1,37 @@ +diff --git a/src/include/duckdb/common/vector_operations/unary_executor.hpp b/src/include/duckdb/common/vector_operations/unary_executor.hpp +index 9f29d7410f..bf77c61e7a 100644 +--- a/src/include/duckdb/common/vector_operations/unary_executor.hpp ++++ b/src/include/duckdb/common/vector_operations/unary_executor.hpp +@@ -136,6 +136,8 @@ private: + } + } + ++#define DUCKDB_SMALLER_BINARY ++ + template + static inline void ExecuteStandard(Vector &input, Vector &result, idx_t count, void *dataptr, bool adds_nulls) { + switch (input.GetVectorType()) { +@@ -153,6 +155,7 @@ private: + } + break; + } ++#ifndef DUCKDB_SMALLER_BINARY + case VectorType::FLAT_VECTOR: { + result.SetVectorType(VectorType::FLAT_VECTOR); + auto result_data = FlatVector::GetData(result); +@@ -162,6 +165,7 @@ private: + FlatVector::Validity(result), dataptr, adds_nulls); + break; + } ++#endif + default: { + UnifiedVectorFormat vdata; + input.ToUnifiedFormat(count, vdata); +@@ -176,6 +180,7 @@ private: + } + } + } ++#undef DUCKDB_SMALLER_BINARY + + public: + template