Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .clangd
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
CompileFlags:
CompilationDatabase: build/clangd
CompilationDatabase: build/debug
Add: -Wno-unqualified-std-cast-call
5 changes: 4 additions & 1 deletion src/duckdb_py/native/python_conversion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
#include "datetime.h" //From Python

#include "duckdb/common/limits.hpp"
#include "duckdb/common/vector/array_vector.hpp"
#include "duckdb/common/vector/list_vector.hpp"
#include "duckdb/common/vector/struct_vector.hpp"

namespace duckdb {

Expand Down Expand Up @@ -860,7 +863,7 @@ struct PythonVectorConversion {
auto &struct_children = StructVector::GetEntries(result);
for (idx_t i = 0; i < child_count; i++) {
auto child_ele = PyTuple_GetItem(ele.ptr(), i);
TransformPythonObject(child_ele, *struct_children[i], result_offset);
TransformPythonObject(child_ele, struct_children[i], result_offset);
}
}

Expand Down
2 changes: 2 additions & 0 deletions src/duckdb_py/numpy/array_wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#include "duckdb_python/pyconnection/pyconnection.hpp"
#include "duckdb_python/pyresult.hpp"
#include "duckdb/common/types/uuid.hpp"
#include "duckdb/common/vector/array_vector.hpp"
#include "duckdb/common/vector/list_vector.hpp"

#include <duckdb/function/scalar/variant_utils.hpp>

Expand Down
4 changes: 3 additions & 1 deletion src/duckdb_py/numpy/numpy_scan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
#include "duckdb_python/python_conversion.hpp"
#include "duckdb/common/string_util.hpp"
#include "duckdb/common/types/timestamp.hpp"
#include "duckdb/common/vector/map_vector.hpp"
#include "duckdb/common/vector/struct_vector.hpp"
#include "utf8proc_wrapper.hpp"
#include "duckdb/common/case_insensitive_map.hpp"
#include "duckdb_python/pandas/pandas_bind.hpp"
Expand Down Expand Up @@ -136,7 +138,7 @@ static void SetInvalidRecursive(Vector &out, idx_t index) {
if (out.GetType().InternalType() == PhysicalType::STRUCT) {
auto &children = StructVector::GetEntries(out);
for (idx_t i = 0; i < children.size(); i++) {
SetInvalidRecursive(*children[i], index);
SetInvalidRecursive(children[i], index);
}
}
}
Expand Down