Skip to content

Commit

Permalink
assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacbrodsky committed Apr 25, 2024
1 parent 5e3a49c commit 5d87b83
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/h3_directededge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ static void DirectedEdgeToCellsFunction(DataChunk &args, ExpressionState &state,
static void OriginToDirectedEdgesFunction(DataChunk &args,
ExpressionState &state,
Vector &result) {
D_ASSERT(result.GetType().id() == LogicalTypeId::LIST);

auto result_data = FlatVector::GetData<list_entry_t>(result);
for (idx_t i = 0; i < args.size(); i++) {
result_data[i].offset = ListVector::GetListSize(result);
Expand Down

0 comments on commit 5d87b83

Please sign in to comment.