Skip to content

Commit

Permalink
Add important tricky todo
Browse files Browse the repository at this point in the history
  • Loading branch information
lanlou1554 committed Nov 17, 2024
1 parent a8f92c3 commit 7c46ecf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion optd-cost-model/src/cost/filter/comp_op.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ impl<S: CostModelStorageManager> CostModelImpl<S> {
cast_node = attr_ref_expr.into_pred_node();
// The "invert" cast is to invert the cast so that we're casting the
// non_cast_node to the attribute's original type.
// TODO(migration): double check
// TODO: Consider attribute info is None.
// **TODO**: What if this attribute is a derived attribute?
let attribute_info = self
.storage_manager
.get_attribute_info(table_id, attr_ref_idx as i32)
Expand Down
2 changes: 2 additions & 0 deletions optd-cost-model/src/storage/persistent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ impl<S: CostModelStorageLayer + Send + Sync> CostModelStorageManager
///
/// TODO: if we have memory cache,
/// we should add the reference. (&Attr)
/// TODO(IMPORTANT): what if table is a derived (temporary) table? And what if
/// the attribute is a derived attribute?
async fn get_attribute_info(
&self,
table_id: TableId,
Expand Down

0 comments on commit 7c46ecf

Please sign in to comment.