MCPcopy Create free account
hub / github.com/AfterShip/clickhouse-sql-parser / tryParseGroupByClause

Method tryParseGroupByClause

parser/parser_query.go:488–493  ·  view source on GitHub ↗
(pos Pos)

Source from the content-addressed store, hash-verified

486}
487
488func (p *Parser) tryParseGroupByClause(pos Pos) (*GroupByClause, error) {
489 if !p.matchKeyword(KeywordGroup) {
490 return nil, nil
491 }
492 return p.parseGroupByClause(pos)
493}
494
495// syntax: groupByClause? (WITH (CUBE | ROLLUP))? (WITH TOTALS)?
496func (p *Parser) parseGroupByClause(pos Pos) (*GroupByClause, error) {

Callers 3

parseProjectionSelectMethod · 0.95
parseSelectStmtMethod · 0.95
tryParseTTLPolicyMethod · 0.95

Calls 2

matchKeywordMethod · 0.95
parseGroupByClauseMethod · 0.95

Tested by

no test coverage detected