MCPcopy Index your code
hub / github.com/apache/datafusion / expr_to_sql

Method expr_to_sql

datafusion/sql/src/unparser/expr.rs:96–102  ·  view source on GitHub ↗
(&self, expr: &Expr)

Source from the content-addressed store, hash-verified

94
95impl Unparser<'_> {
96 pub fn expr_to_sql(&self, expr: &Expr) -> Result<ast::Expr> {
97 let mut root_expr = self.expr_to_sql_inner(expr)?;
98 if self.pretty {
99 root_expr = self.remove_unnecessary_nesting(root_expr, LOWEST, LOWEST);
100 }
101 Ok(root_expr)
102 }
103
104 #[cfg_attr(feature = "recursive_protection", recursive::recursive)]
105 fn expr_to_sql_inner(&self, expr: &Expr) -> Result<ast::Expr> {

Calls 2

expr_to_sql_innerMethod · 0.80