()
| 759 | } |
| 760 | |
| 761 | func (p *Parser) parseFrameParam() (Expr, error) { |
| 762 | queryParam, err := p.parseQueryParam(p.Pos()) |
| 763 | if err != nil { |
| 764 | return nil, err |
| 765 | } |
| 766 | |
| 767 | direction, endPos, err := p.parseFrameDirectionWithEnd() |
| 768 | if err != nil { |
| 769 | return nil, err |
| 770 | } |
| 771 | return &WindowFrameParam{ |
| 772 | Param: queryParam, |
| 773 | EndPos: endPos, |
| 774 | Direction: direction, |
| 775 | }, nil |
| 776 | } |
| 777 | |
| 778 | func (p *Parser) parseFrameInterval() (Expr, error) { |
| 779 | intervalExpr, err := p.parseInterval(true) |
no test coverage detected