MCPcopy Create free account
hub / github.com/questdb/questdb / expectBy

Method expectBy

core/src/main/java/io/questdb/griffin/SqlParser.java:669–674  ·  view source on GitHub ↗
(GenericLexer lexer)

Source from the content-addressed store, hash-verified

667 }
668
669 private void expectBy(GenericLexer lexer) throws SqlException {
670 if (isByKeyword(tok(lexer, "'by'"))) {
671 return;
672 }
673 throw SqlException.$((lexer.lastTokenPosition()), "'by' expected");
674 }
675
676 private double expectDouble(GenericLexer lexer) throws SqlException {
677 CharSequence tok = GenericLexer.unquote(expectStringLiteral(lexer).token);

Callers 2

parseFromClauseMethod · 0.95
parsePivotMethod · 0.95

Calls 4

tokMethod · 0.95
$Method · 0.95
isByKeywordMethod · 0.80
lastTokenPositionMethod · 0.80

Tested by

no test coverage detected