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

Method scalar_function_to_sql

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

Source from the content-addressed store, hash-verified

616 }
617
618 pub fn scalar_function_to_sql(
619 &self,
620 func_name: &str,
621 args: &[Expr],
622 ) -> Result<ast::Expr> {
623 match func_name {
624 "make_array" => self.make_array_to_sql(args),
625 "array_element" => self.array_element_to_sql(args),
626 "named_struct" => self.named_struct_to_sql(args),
627 "get_field" => self.get_field_to_sql(args),
628 "map" => self.map_to_sql(args),
629 // TODO: support for the construct and access functions of the `map` type
630 _ => self.function_to_sql_internal(func_name, args),
631 }
632 }
633
634 fn function_to_sql_internal(
635 &self,

Callers 6

date_part_to_sqlFunction · 0.80
character_length_to_sqlFunction · 0.80
sqlite_date_trunc_to_sqlFunction · 0.80
expr_to_sql_innerMethod · 0.80
get_field_to_sqlMethod · 0.80

Calls 6

make_array_to_sqlMethod · 0.80
array_element_to_sqlMethod · 0.80
named_struct_to_sqlMethod · 0.80
get_field_to_sqlMethod · 0.80
map_to_sqlMethod · 0.80

Tested by

no test coverage detected