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

Method make_array_to_sql

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

Source from the content-addressed store, hash-verified

658 }
659
660 fn make_array_to_sql(&self, args: &[Expr]) -> Result<ast::Expr> {
661 let args = args
662 .iter()
663 .map(|e| self.expr_to_sql(e))
664 .collect::<Result<Vec<_>>>()?;
665 Ok(ast::Expr::Array(Array {
666 elem: args,
667 named: self.dialect.use_array_keyword_for_array_literals(),
668 }))
669 }
670
671 fn scalar_value_list_to_sql(&self, array: &ArrayRef) -> Result<ast::Expr> {
672 let mut elem = Vec::new();

Callers 1

Calls 4

expr_to_sqlMethod · 0.80
mapMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected