Skip to content

Commit

Permalink
Document when to use rewrite_function_call
Browse files Browse the repository at this point in the history
  • Loading branch information
emk committed Feb 28, 2024
1 parent 0ee8da8 commit d6af38c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/transforms/rename_functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ impl RenameFunctionsBuilder {
}

/// Add a function call rewriter.
///
/// WARNING: This should be a last resort, after trying [`Self::udf_table`],
/// or defining an SQL UDF and passing it to [`Self::new`] as part of the
/// `function_table`. Mostly this should be reserved for rewriting aggregate
/// functions, or for databases that don't support SQL UDFs at all.
pub fn rewrite_function_call(
mut self,
name: &'static str,
Expand Down

0 comments on commit d6af38c

Please sign in to comment.