MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / parseKQLQueryAndMovePosition

Function parseKQLQueryAndMovePosition

src/Parsers/Kusto/parseKQLQuery.cpp:458–488  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

456
457
458ASTPtr parseKQLQueryAndMovePosition(
459 IParser & parser,
460 const char * & pos,
461 const char * end,
462 const std::string & query_description,
463 bool allow_multi_statements,
464 size_t max_query_size,
465 size_t max_parser_depth,
466 size_t max_parser_backtracks)
467{
468 std::string error_message;
469 int error_code = ErrorCodes::SYNTAX_ERROR;
470 ASTPtr res = tryParseKQLQuery(
471 parser,
472 pos,
473 end,
474 error_message,
475 &error_code,
476 false,
477 query_description,
478 allow_multi_statements,
479 max_query_size,
480 max_parser_depth,
481 max_parser_backtracks,
482 true);
483
484 if (res)
485 return res;
486
487 throw Exception::createDeprecated(error_message, error_code);
488}
489
490ASTPtr parseKQLQuery(
491 IParser & parser,

Callers 3

parseKQLQueryFunction · 0.85
sendQueryMethod · 0.85
parseQueryMethod · 0.85

Calls 1

tryParseKQLQueryFunction · 0.85

Tested by

no test coverage detected