MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / parse_homogenizing_function

Method parse_homogenizing_function

src/sql-parser/src/parser.rs:1037–1045  ·  view source on GitHub ↗
(
        &mut self,
        function: HomogenizingFunction,
    )

Source from the content-addressed store, hash-verified

1035 }
1036
1037 fn parse_homogenizing_function(
1038 &mut self,
1039 function: HomogenizingFunction,
1040 ) -> Result<Expr<Raw>, ParserError> {
1041 self.expect_token(&Token::LParen)?;
1042 let exprs = self.parse_comma_separated(Parser::parse_expr)?;
1043 self.expect_token(&Token::RParen)?;
1044 Ok(Expr::HomogenizingFunction { function, exprs })
1045 }
1046
1047 fn parse_nullif_expr(&mut self) -> Result<Expr<Raw>, ParserError> {
1048 self.expect_token(&Token::LParen)?;

Callers 1

parse_prefixMethod · 0.80

Calls 2

expect_tokenMethod · 0.80
parse_comma_separatedMethod · 0.80

Tested by

no test coverage detected