Skip to content

Commit

Permalink
add internal as an alias of deprecated
Browse files Browse the repository at this point in the history
Signed-off-by: Runji Wang <[email protected]>
  • Loading branch information
wangrunji0408 committed Nov 24, 2023
1 parent ad4ac7f commit fb80490
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/expr/impl/src/aggregate/general.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ use risingwave_expr::{aggregate, ExprError, Result};
#[aggregate("sum(decimal) -> decimal")]
#[aggregate("sum(interval) -> interval")]
#[aggregate("sum(int256) -> int256")]
#[aggregate("sum(int8) -> int8", deprecated)] // used internally for 2-phase sum(int2) and sum(int4)
#[aggregate("sum(int8) -> int8", internal)] // used internally for 2-phase sum(int2) and sum(int4)
#[aggregate("sum0(int8) -> int8", init_state = "0i64")] // used internally for 2-phase count
fn sum<S, T>(state: S, input: T, retract: bool) -> Result<S>
where
Expand Down
2 changes: 1 addition & 1 deletion src/expr/macro/src/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ impl Parse for FunctionAttr {
parsed.generic = Some(get_value()?);
} else if meta.path().is_ident("volatile") {
parsed.volatile = true;
} else if meta.path().is_ident("deprecated") {
} else if meta.path().is_ident("deprecated") || meta.path().is_ident("internal") {
parsed.deprecated = true;
} else if meta.path().is_ident("rewritten") {
parsed.rewritten = true;
Expand Down

0 comments on commit fb80490

Please sign in to comment.