(
&self,
func_name: &str,
args: &[Expr],
)
| 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, |
no test coverage detected