Kusto-phase1 : apply parser comments to kusto, remove unused variable

This commit is contained in:
Yong Wang 2022-09-18 20:25:27 -07:00
parent 4e4a04c08b
commit 37ae7a8cca

View File

@ -389,12 +389,11 @@ static std::tuple<ASTPtr, BlockIO> executeQueryImpl(
String query_table;
try
{
const Dialect & dialect = settings.dialect;
if (dialect == Dialect::kusto && !internal)
if (settings.dialect == Dialect::kusto && !internal)
{
ParserKQLStatement parser(end, settings.allow_settings_after_format_in_insert);
/// TODO: parser should fail early when max_query_size limit is reached.
ast = parseQuery(parser, begin, end, "", max_query_size, settings.max_parser_depth);
}
else