Skip to content

Commit c2b8b5d

Browse files
Weijun-Halamb
andauthored
Update datafusion/expr/src/udf.rs
Co-authored-by: Andrew Lamb <[email protected]>
1 parent 77ca3b6 commit c2b8b5d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

datafusion/expr/src/udf.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,15 @@ pub trait ScalarUDFImpl: Debug + DynEq + DynHash + Send + Sync {
536536
///
537537
/// This method is called when configuration options change at runtime
538538
/// (e.g., via `SET` statements) to allow functions that depend on
539-
/// configuration to update themselves accordingly.
539+
/// configuration to update themselves accordingly.
540+
///
541+
/// Note the current [`ConfigOptions`] are also passed to [`Self::invoke_with_args`] so
542+
/// this API is not needed for functions where the values may
543+
/// depend on the current options.
544+
///
545+
/// This API is useful for functions where the return
546+
/// **type** depends on the configuration options, such as the `now()` function
547+
/// which depends on the current timezone.
540548
///
541549
/// # Arguments
542550
///

0 commit comments

Comments
 (0)