Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ray6080 committed Sep 19, 2023
1 parent caf9b16 commit b21f97d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/catalog/table_schema.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ property_id_t TableSchema::getPropertyID(const std::string& propertyName) const
"Table: {} doesn't have a property with propertyName={}.", tableName, propertyName));
}

// TODO(Guodong): Instead of looping over properties, cache a map between propertyID and columnID.
column_id_t TableSchema::getColumnID(const property_id_t propertyID) const {
for (auto i = 0u; i < properties.size(); i++) {
if (properties[i]->getPropertyID() == propertyID) {
Expand Down

0 comments on commit b21f97d

Please sign in to comment.