Skip to content

Commit

Permalink
add back type inference for internally used vnode function
Browse files Browse the repository at this point in the history
Signed-off-by: Bugen Zhao <[email protected]>
  • Loading branch information
BugenZhao committed Oct 9, 2024
1 parent 8a25e77 commit 9bf37c7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/frontend/src/expr/type_inference/func.rs
Original file line number Diff line number Diff line change
Expand Up @@ -660,6 +660,9 @@ fn infer_type_for_special(
.into()),
}
}
// internal use only
ExprType::Vnode => Ok(Some(VirtualNode::RW_TYPE)),
// user-facing `rw_vnode`
ExprType::VnodeUser => {
ensure_arity!("rw_vnode", 2 <= | inputs |);
inputs[0].cast_explicit_mut(DataType::Int32)?; // vnode count
Expand Down

0 comments on commit 9bf37c7

Please sign in to comment.