diff --git a/src/duckdb/src/core_functions/scalar/list/list_value.cpp b/src/duckdb/src/core_functions/scalar/list/list_value.cpp index 38e50f1dd..cc7a5df6f 100644 --- a/src/duckdb/src/core_functions/scalar/list/list_value.cpp +++ b/src/duckdb/src/core_functions/scalar/list/list_value.cpp @@ -68,19 +68,18 @@ static void TemplatedListValueFunctionFallback(DataChunk &args, Vector &result) static void ListValueFunction(DataChunk &args, ExpressionState &state, Vector &result) { D_ASSERT(result.GetType().id() == LogicalTypeId::LIST); result.SetVectorType(VectorType::CONSTANT_VECTOR); - for (idx_t i = 0; i < args.ColumnCount(); i++) { - if (args.data[i].GetVectorType() != VectorType::CONSTANT_VECTOR) { - result.SetVectorType(VectorType::FLAT_VECTOR); - } - } if (args.ColumnCount() == 0) { // no columns - early out - result is a constant empty list auto result_data = FlatVector::GetData(result); result_data[0].length = 0; result_data[0].offset = 0; - result.SetVectorType(VectorType::CONSTANT_VECTOR); return; } + for (idx_t i = 0; i < args.ColumnCount(); i++) { + if (args.data[i].GetVectorType() != VectorType::CONSTANT_VECTOR) { + result.SetVectorType(VectorType::FLAT_VECTOR); + } + } auto &result_type = ListVector::GetEntry(result).GetType(); switch (result_type.InternalType()) { case PhysicalType::BOOL: diff --git a/src/duckdb/src/function/table/version/pragma_version.cpp b/src/duckdb/src/function/table/version/pragma_version.cpp index 411083f19..4c4f7c54d 100644 --- a/src/duckdb/src/function/table/version/pragma_version.cpp +++ b/src/duckdb/src/function/table/version/pragma_version.cpp @@ -1,5 +1,5 @@ #ifndef DUCKDB_PATCH_VERSION -#define DUCKDB_PATCH_VERSION "1-dev3270" +#define DUCKDB_PATCH_VERSION "1-dev3272" #endif #ifndef DUCKDB_MINOR_VERSION #define DUCKDB_MINOR_VERSION 0 @@ -8,10 +8,10 @@ #define DUCKDB_MAJOR_VERSION 1 #endif #ifndef DUCKDB_VERSION -#define DUCKDB_VERSION "v1.0.1-dev3270" +#define DUCKDB_VERSION "v1.0.1-dev3272" #endif #ifndef DUCKDB_SOURCE_ID -#define DUCKDB_SOURCE_ID "40e2fcd05a" +#define DUCKDB_SOURCE_ID "53d00e5048" #endif #include "duckdb/function/table/system_functions.hpp" #include "duckdb/main/database.hpp"