MCPcopy Create free account
hub / github.com/apache/datafusion / function_args_to_sql

Method function_args_to_sql

datafusion/sql/src/unparser/expr.rs:910–931  ·  view source on GitHub ↗
(
        &self,
        args: &[Expr],
    )

Source from the content-addressed store, hash-verified

908 }
909
910 pub(crate) fn function_args_to_sql(
911 &self,
912 args: &[Expr],
913 ) -> Result<Vec<ast::FunctionArg>> {
914 args.iter()
915 .map(|e| {
916 #[expect(deprecated)]
917 if matches!(
918 e,
919 Expr::Wildcard {
920 qualifier: None,
921 ..
922 }
923 ) {
924 Ok(ast::FunctionArg::Unnamed(ast::FunctionArgExpr::Wildcard))
925 } else {
926 self.expr_to_sql(e)
927 .map(|e| ast::FunctionArg::Unnamed(ast::FunctionArgExpr::Expr(e)))
928 }
929 })
930 .collect::<Result<Vec<_>>>()
931 }
932
933 /// This function can create an identifier with or without quotes based on the dialect rules
934 pub(super) fn new_ident_quoted_if_needs(&self, ident: String) -> Ident {

Callers 4

expr_to_sql_innerMethod · 0.80
unnest_to_sqlMethod · 0.80

Calls 4

ExprEnum · 0.85
expr_to_sqlMethod · 0.80
mapMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected