Skip to content

Commit

Permalink
Hide index fields implicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-epsilla committed Dec 14, 2023
1 parent d77e465 commit 6a8892a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions engine/db/table_mvp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,10 @@ Status TableMVP::Project(
// If query fields is empty, fill in with all fields.
if (query_fields.size() == 0) {
for (int i = 0; i < table_schema_.fields_.size(); ++i) {
// Index fields are not responsed by default.
if (table_schema_.fields_[i].is_index_field_) {
continue;
}
query_fields.push_back(table_schema_.fields_[i].name_);
}
}
Expand Down

0 comments on commit 6a8892a

Please sign in to comment.