diff options
Diffstat (limited to 'yql/essentials/sql/v1/format/check/check_format.cpp')
| -rw-r--r-- | yql/essentials/sql/v1/format/check/check_format.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/yql/essentials/sql/v1/format/check/check_format.cpp b/yql/essentials/sql/v1/format/check/check_format.cpp index 41ca6dfedf2..a1e891df807 100644 --- a/yql/essentials/sql/v1/format/check/check_format.cpp +++ b/yql/essentials/sql/v1/format/check/check_format.cpp @@ -133,8 +133,14 @@ TMaybe<TString> CheckedFormat( }; NSQLTranslationV1::TParsers parsers = { - .Antlr4 = NSQLTranslationV1::MakeAntlr4ParserFactory(), - .Antlr4Ansi = NSQLTranslationV1::MakeAntlr4AnsiParserFactory(), + .Antlr4 = NSQLTranslationV1::MakeAntlr4ParserFactory( + /*isAmbiguityError=*/false, + /*isAmbiguityDebugging=*/false, + settings.MaxParseTreeDepth), + .Antlr4Ansi = NSQLTranslationV1::MakeAntlr4AnsiParserFactory( + /*isAmbiguityError=*/false, + /*isAmbiguityDebugging=*/false, + settings.MaxParseTreeDepth), }; auto formatter = NSQLFormat::MakeSqlFormatter(lexers, parsers, settings); |
