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

Method tryParseDistinctOn

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

Source from the content-addressed store, hash-verified

74}
75
76func (p *Parser) tryParseDistinctOn(pos Pos) (*DistinctOn, error) {
77 if !p.matchKeyword(KeywordOn) {
78 return nil, nil
79 }
80 return p.parseDistinctOn(pos)
81}
82
83func (p *Parser) parseDistinctOn(pos Pos) (*DistinctOn, error) {
84 if err := p.expectKeyword(KeywordOn); err != nil {

Callers 1

parseSelectStmtMethod · 0.95

Calls 2

matchKeywordMethod · 0.95
parseDistinctOnMethod · 0.95

Tested by

no test coverage detected