From fb8049033651c492b80aca2c51dd69c00aad9aec Mon Sep 17 00:00:00 2001 From: Runji Wang Date: Fri, 24 Nov 2023 15:59:53 +0800 Subject: [PATCH] add `internal` as an alias of `deprecated` Signed-off-by: Runji Wang --- src/expr/impl/src/aggregate/general.rs | 2 +- src/expr/macro/src/parse.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/expr/impl/src/aggregate/general.rs b/src/expr/impl/src/aggregate/general.rs index ecd04562ed6d2..7256bf24cd851 100644 --- a/src/expr/impl/src/aggregate/general.rs +++ b/src/expr/impl/src/aggregate/general.rs @@ -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(state: S, input: T, retract: bool) -> Result where diff --git a/src/expr/macro/src/parse.rs b/src/expr/macro/src/parse.rs index 8b4a59fa0039d..574d573894655 100644 --- a/src/expr/macro/src/parse.rs +++ b/src/expr/macro/src/parse.rs @@ -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;