Skip to content

Commit

Permalink
nullable coo support for copy function
Browse files Browse the repository at this point in the history
  • Loading branch information
grammaright committed Dec 13, 2024
1 parent fc41135 commit 8efdb10
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/array_writer/cooma_to_coo_writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,13 @@ void CoomaToCooCopyArrayWriter::WriteArrayData(ExecutionContext &context,
offset += size;
}
}

// set null=false if nullable array
if (page->nullbits_len > 0) {
bf_util_reset_cell_null(page, page->unfilled_idx);
}

// update unfilled idx
page->unfilled_pagebuf_offset += offset;
page->unfilled_idx++;
// std::cout << ", buf[" << idx << "] = " << val[i] << std::endl;
Expand Down

0 comments on commit 8efdb10

Please sign in to comment.