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

Method tryParsePartitionClause

parser/parser_alter.go:354–359  ·  view source on GitHub ↗
(pos Pos)

Source from the content-addressed store, hash-verified

352}
353
354func (p *Parser) tryParsePartitionClause(pos Pos) (*PartitionClause, error) {
355 if !p.matchKeyword(KeywordPartition) {
356 return nil, nil // nolint
357 }
358 return p.parsePartitionClause(pos)
359}
360
361func (p *Parser) parsePartitionClause(pos Pos) (*PartitionClause, error) {
362 if err := p.expectKeyword(KeywordPartition); err != nil {

Callers 4

parseOptimizeStmtMethod · 0.95
parseCheckStmtMethod · 0.95

Calls 2

matchKeywordMethod · 0.95
parsePartitionClauseMethod · 0.95

Tested by

no test coverage detected