fn order_by_to_sort_expr(&self, e: &OrderByExpr) -> Result<Expr> {
        Ok(Expr::Sort {
            expr: Box::new(self.sql_expr_to_logical_expr(&e.expr)?),
            // by default asc
            asc: e.asc.unwrap_or(true),
            // by default nulls first to be consistent with spark
            nulls_first: e.nulls_first.unwrap_or(true),
        })
    }
/// convert sql OrderByExpr to Expr::Sort
convert sql OrderByExpr to Expr::Sort
convert sql OrderByExpr to Expr :: Sort
fn order_by_to_sort_expr(&self, e: &OrderByExpr) -> Result<Expr> {
        Ok(Expr::Sort {
            expr: Box::new(self.sql_expr_to_logical_expr(&e.expr)?),
            // by default asc
            asc: e.asc.unwrap_or(true),
            // by default nulls first to be consistent with spark
            nulls_first: e.nulls_first.unwrap_or(true),
        })
    }
fn order_by_to_sort_expr ( & self , e : & OrderByExpr ) -> Result < Expr > { Ok ( Expr :: Sort { expr : Box :: new ( self . sql_expr_to_logical_expr ( & e . expr ) ? ) , // by default asc asc : e . asc . unwrap_or ( true ) , // by default nulls first to be consistent with spark nulls_first : e . nulls_first . unwrap_or ( true ) , } ) }
convert sql OrderByExpr to Expr::Sort
convert sql OrderByExpr to Expr :: Sort
&self
e
&OrderByExpr
&self
e
&OrderByExpr