Skip to content

Commit

Permalink
Modify several comments
Browse files Browse the repository at this point in the history
  • Loading branch information
lanlou1554 committed Nov 16, 2024
1 parent 6f659d9 commit 98484ac
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions optd-cost-model/src/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ impl<S: CostModelStorageLayer> CostModelStorageManager<S> {
/// Gets the attribute information for a given table and attribute base index.
///
/// TODO: if we have memory cache,
/// we should add the reference. (&Field)
/// we should add the reference. (&&Attr)
pub async fn get_attribute_info(
&self,
table_id: TableId,
Expand All @@ -40,7 +40,7 @@ impl<S: CostModelStorageLayer> CostModelStorageManager<S> {

/// Gets the latest statistics for a given table.
///
/// Currently, in `AttributeCombValueStats`, only `Distribution` is optional.
/// TODO: Currently, in `AttributeCombValueStats`, only `Distribution` is optional.
/// This poses a question about the behavior of the system if there is no corresponding
/// `MostCommonValues`, `ndistinct`, or other statistics. We should have a clear
/// specification about the behavior of the system in the presence of missing statistics.
Expand Down Expand Up @@ -127,3 +127,5 @@ impl<S: CostModelStorageLayer> CostModelStorageManager<S> {
)))
}
}

// TODO: add some tests, especially cover the error cases.

0 comments on commit 98484ac

Please sign in to comment.