()
| 776 | } |
| 777 | |
| 778 | func (p *Parser) parseFrameInterval() (Expr, error) { |
| 779 | intervalExpr, err := p.parseInterval(true) |
| 780 | if err != nil { |
| 781 | return nil, err |
| 782 | } |
| 783 | |
| 784 | direction, endPos, err := p.parseFrameDirectionWithEnd() |
| 785 | if err != nil { |
| 786 | return nil, err |
| 787 | } |
| 788 | return &WindowFrameExtendExpr{ |
| 789 | Expr: intervalExpr, |
| 790 | Direction: direction, |
| 791 | EndPos: endPos, |
| 792 | }, nil |
| 793 | } |
| 794 | |
| 795 | func (p *Parser) parseFrameDirection() (string, error) { |
| 796 | switch { |
no test coverage detected