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

Method new_table_alias

datafusion/sql/src/unparser/plan.rs:1996–2010  ·  view source on GitHub ↗
(&self, alias: String, columns: Vec<Ident>)

Source from the content-addressed store, hash-verified

1994 }
1995
1996 fn new_table_alias(&self, alias: String, columns: Vec<Ident>) -> ast::TableAlias {
1997 let columns = columns
1998 .into_iter()
1999 .map(|ident| TableAliasColumnDef {
2000 name: ident,
2001 data_type: None,
2002 })
2003 .collect();
2004 ast::TableAlias {
2005 name: self.new_ident_quoted_if_needs(alias),
2006 columns,
2007 explicit: true,
2008 at: None,
2009 }
2010 }
2011
2012 fn dml_to_sql(&self, plan: &LogicalPlan) -> Result<ast::Statement> {
2013 not_impl_err!("Unsupported plan: {plan:?}")

Calls 4

collectMethod · 0.80
mapMethod · 0.45
into_iterMethod · 0.45

Tested by

no test coverage detected