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