Skip to content

Commit

Permalink
Unordered reads should be allowed for dense arrays (#2608)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shelnutt2 committed Nov 16, 2021
1 parent c55959c commit 5e715ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tiledb/sm/query/query.cc
Expand Up @@ -1770,7 +1770,8 @@ Status Query::set_layout(Layout layout) {
return logger_->status(Status::QueryError(
"Cannot set layout; Hilbert order is not applicable to queries"));

if (array_schema_->dense() && layout == Layout::UNORDERED) {
if (type_ == QueryType::WRITE && array_schema_->dense() &&
layout == Layout::UNORDERED) {
return logger_->status(Status::QueryError(
"Unordered writes are only possible for sparse arrays"));
}
Expand Down

0 comments on commit 5e715ad

Please sign in to comment.