fn parse_cast_expr(&mut self) -> Result<Expr<Raw>, ParserError> {
        self.expect_token(&Token::LParen)?;
        let expr = self.parse_expr()?;
        self.expect_keyword(AS)?;
        let data_type = self.parse_data_type()?;
        self.expect_token(&Token::RParen)?;
        Ok(Expr::Cast {
            expr: Box::new(expr),
            data_type,
        })
    }
/// Parse a SQL CAST function e.g. `CAST(expr AS FLOAT)`
Parse a SQL CAST function e.g.
Parse a SQL CAST function e . g .
fn parse_cast_expr(&mut self) -> Result<Expr<Raw>, ParserError> {
        self.expect_token(&Token::LParen)?;
        let expr = self.parse_expr()?;
        self.expect_keyword(AS)?;
        let data_type = self.parse_data_type()?;
        self.expect_token(&Token::RParen)?;
        Ok(Expr::Cast {
            expr: Box::new(expr),
            data_type,
        })
    }
fn parse_cast_expr ( & mut self ) -> Result < Expr < Raw > , ParserError > { self . expect_token ( & Token :: LParen ) ? ; let expr = self . parse_expr ( ) ? ; self . expect_keyword ( AS ) ? ; let data_type = self . parse_data_type ( ) ? ; self . expect_token ( & Token :: RParen ) ? ; Ok ( Expr :: Cast { expr : Box :: new ( expr ) , data_type , } ) }
Parse a SQL CAST function e.g.
Parse a SQL CAST function e . g .
&mut self
&mut self