Skip to content

Commit

Permalink
Check is_nullable_
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenv committed Jan 23, 2025
1 parent a6cc0e2 commit e8e8405
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libtiledbsoma/src/soma/column_buffer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,10 @@ void ColumnBuffer::attach(Query& query, std::optional<Subarray> subarray) {
"[ColumnBuffer::attach] Validity buffer passed for dimension "
"'{}'",
name_));
} else if (!schema.attribute(name_).nullable()) {
} else if (!is_nullable_) {
throw TileDBSOMAError(std::format(
"[ColumnBuffer::attach] Validity buffer passed for "
"non-nullable attribute '{}",
"non-nullable attribute '{}'",
name_));
}
}
Expand Down

0 comments on commit e8e8405

Please sign in to comment.