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

Method parse_rows_from

src/sql-parser/src/parser.rs:8505–8515  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

8503 }
8504
8505 fn parse_rows_from(&mut self) -> Result<TableFactor<Raw>, ParserError> {
8506 self.expect_token(&Token::LParen)?;
8507 let functions = self.parse_comma_separated(Parser::parse_windowless_function)?;
8508 self.expect_token(&Token::RParen)?;
8509 let (with_ordinality, alias) = self.parse_table_function_suffix()?;
8510 Ok(TableFactor::RowsFrom {
8511 functions,
8512 alias,
8513 with_ordinality,
8514 })
8515 }
8516
8517 /// Parses the things that can come after the argument list of a table function call. These are
8518 /// - optional WITH ORDINALITY

Callers 1

Calls 3

expect_tokenMethod · 0.80
parse_comma_separatedMethod · 0.80

Tested by

no test coverage detected