Skip to content

Commit

Permalink
Do not add dimensions for dense array queries if not requested
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenv authored and johnkerl committed Apr 18, 2024
1 parent 4487347 commit c807cb2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions libtiledbsoma/src/soma/managed_query.cc
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,10 @@ void ManagedQuery::setup_read() {
// If no columns were selected, select all columns.
// Add dims and attrs in the same order as specified in the schema
if (columns_.empty()) {
for (const auto& dim : array_->schema().domain().dimensions()) {
columns_.push_back(dim.name());
if (array_->schema().array_type() == TILEDB_SPARSE) {
for (const auto& dim : array_->schema().domain().dimensions()) {
columns_.push_back(dim.name());
}
}
int attribute_num = array_->schema().attribute_num();
for (int i = 0; i < attribute_num; i++) {
Expand Down

0 comments on commit c807cb2

Please sign in to comment.