MCPcopy
hub / github.com/uber/aresdb / AliasedRelation

Method AliasedRelation

query/sql/antlrgen/sqlbase_parser.go:4476–4535  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4474}
4475
4476func (p *SqlBaseParser) AliasedRelation() (localctx IAliasedRelationContext) {
4477 localctx = NewAliasedRelationContext(p, p.GetParserRuleContext(), p.GetState())
4478 p.EnterRule(localctx, 38, SqlBaseParserRULE_aliasedRelation)
4479 var _la int
4480
4481 defer func() {
4482 p.ExitRule()
4483 }()
4484
4485 defer func() {
4486 if err := recover(); err != nil {
4487 if v, ok := err.(antlr.RecognitionException); ok {
4488 localctx.SetException(v)
4489 p.GetErrorHandler().ReportError(p, v)
4490 p.GetErrorHandler().Recover(p, v)
4491 } else {
4492 panic(err)
4493 }
4494 }
4495 }()
4496
4497 p.EnterOuterAlt(localctx, 1)
4498 {
4499 p.SetState(329)
4500 p.RelationPrimary()
4501 }
4502 p.SetState(337)
4503 p.GetErrorHandler().Sync(p)
4504
4505 if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 42, p.GetParserRuleContext()) == 1 {
4506 p.SetState(331)
4507 p.GetErrorHandler().Sync(p)
4508 _la = p.GetTokenStream().LA(1)
4509
4510 if _la == SqlBaseParserAS {
4511 {
4512 p.SetState(330)
4513 p.Match(SqlBaseParserAS)
4514 }
4515
4516 }
4517 {
4518 p.SetState(333)
4519 p.Identifier()
4520 }
4521 p.SetState(335)
4522 p.GetErrorHandler().Sync(p)
4523
4524 if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 41, p.GetParserRuleContext()) == 1 {
4525 {
4526 p.SetState(334)
4527 p.ColumnAliases()
4528 }
4529
4530 }
4531
4532 }
4533

Callers 2

SampledRelationMethod · 0.95
VisitSampledRelationMethod · 0.45

Calls 6

RelationPrimaryMethod · 0.95
IdentifierMethod · 0.95
ColumnAliasesMethod · 0.95
LAMethod · 0.80
ReportErrorMethod · 0.65

Tested by

no test coverage detected