File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff 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 ///
You can’t perform that action at this time.
0 commit comments