From dfff5903230fd8c35bb61177f765142efa94fc46 Mon Sep 17 00:00:00 2001 From: Max Gabrielsson Date: Tue, 17 Sep 2024 18:15:01 +0200 Subject: [PATCH] dont print rowids when dumping rtree branches --- .../src/spatial/core/index/rtree/rtree_index_pragmas.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/spatial/src/spatial/core/index/rtree/rtree_index_pragmas.cpp b/spatial/src/spatial/core/index/rtree/rtree_index_pragmas.cpp index b986e158..7c9177e1 100644 --- a/spatial/src/spatial/core/index/rtree/rtree_index_pragmas.cpp +++ b/spatial/src/spatial/core/index/rtree/rtree_index_pragmas.cpp @@ -212,7 +212,11 @@ static void RTreeIndexDumpExecute(ClientContext &context, TableFunctionInput &da ymin_data[output_idx] = entry.bounds.min.y; xmax_data[output_idx] = entry.bounds.max.x; ymax_data[output_idx] = entry.bounds.max.y; - rowid_data[output_idx] = entry.pointer.GetRowId(); + if(entry.pointer.IsRowId()) { + rowid_data[output_idx] = entry.pointer.GetRowId(); + } else { + FlatVector::SetNull(output.data[2], output_idx, true); + } output_idx++; if (output_idx == STANDARD_VECTOR_SIZE) { // We've filled the result vector, yield!