File tree 4 files changed +9
-14
lines changed
4 files changed +9
-14
lines changed Original file line number Diff line number Diff line change @@ -44,11 +44,9 @@ macro_rules! create_func {
44
44
/// named STATIC_$(UDAF). For example `STATIC_FirstValue`
45
45
#[ allow( non_upper_case_globals) ]
46
46
static [ < STATIC_ $UDAF >] : std:: sync:: OnceLock <std:: sync:: Arc <crate :: AggregateUDF >> =
47
- std:: sync:: OnceLock :: new( ) ;
47
+ std:: sync:: OnceLock :: new( ) ;
48
48
49
- /// AggregateFunction that returns a [AggregateUDF] for [$UDAF]
50
- ///
51
- /// [AggregateUDF]: crate::AggregateUDF
49
+ #[ doc = concat!( "AggregateFunction that returns a [AggregateUDF](crate::AggregateUDF) for [`" , stringify!( $UDAF) , "`]" ) ]
52
50
pub fn $AGGREGATE_UDF_FN( ) -> std:: sync:: Arc <crate :: AggregateUDF > {
53
51
[ < STATIC_ $UDAF >]
54
52
. get_or_init( || {
Original file line number Diff line number Diff line change @@ -86,11 +86,9 @@ macro_rules! create_func {
86
86
/// named STATIC_$(UDAF). For example `STATIC_FirstValue`
87
87
#[ allow( non_upper_case_globals) ]
88
88
static [ < STATIC_ $UDAF >] : std:: sync:: OnceLock <std:: sync:: Arc <datafusion_expr:: AggregateUDF >> =
89
- std:: sync:: OnceLock :: new( ) ;
89
+ std:: sync:: OnceLock :: new( ) ;
90
90
91
- /// AggregateFunction that returns a [AggregateUDF] for [$UDAF]
92
- ///
93
- /// [AggregateUDF]: datafusion_expr::AggregateUDF
91
+ #[ doc = concat!( "AggregateFunction that returns a [`AggregateUDF`](datafusion_expr::AggregateUDF) for [`" , stringify!( $UDAF) , "`]" ) ]
94
92
pub fn $AGGREGATE_UDF_FN( ) -> std:: sync:: Arc <datafusion_expr:: AggregateUDF > {
95
93
[ < STATIC_ $UDAF >]
96
94
. get_or_init( || {
Original file line number Diff line number Diff line change @@ -90,9 +90,9 @@ macro_rules! create_func {
90
90
#[ allow( non_upper_case_globals) ]
91
91
static [ < STATIC_ $UDF >] : std:: sync:: OnceLock <std:: sync:: Arc <datafusion_expr:: ScalarUDF >> =
92
92
std:: sync:: OnceLock :: new( ) ;
93
- /// ScalarFunction that returns a [`ScalarUDF`] for [`$UDF`]
94
- ///
95
- /// [`ScalarUDF`]: datafusion_expr::ScalarUDF
93
+
94
+ # [ doc = concat! ( "ScalarFunction that returns a [`ScalarUDF`](datafusion_expr::ScalarUDF) for " ) ]
95
+ # [ doc = stringify! ( $UDF ) ]
96
96
pub fn $SCALAR_UDF_FN( ) -> std:: sync:: Arc <datafusion_expr:: ScalarUDF > {
97
97
[ < STATIC_ $UDF >]
98
98
. get_or_init( || {
Original file line number Diff line number Diff line change @@ -75,9 +75,8 @@ macro_rules! make_udf_function {
75
75
static $GNAME: std:: sync:: OnceLock <std:: sync:: Arc <datafusion_expr:: ScalarUDF >> =
76
76
std:: sync:: OnceLock :: new( ) ;
77
77
78
- /// Return a [`ScalarUDF`] for [`$UDF`]
79
- ///
80
- /// [`ScalarUDF`]: datafusion_expr::ScalarUDF
78
+ #[ doc = "Return a [`ScalarUDF`](datafusion_expr::ScalarUDF) for " ]
79
+ #[ doc = stringify!( $UDF) ]
81
80
pub fn $NAME( ) -> std:: sync:: Arc <datafusion_expr:: ScalarUDF > {
82
81
$GNAME
83
82
. get_or_init( || {
You can’t perform that action at this time.
0 commit comments