From c867696aa6f60d3c2569e181b0768f8a5fcb21fc Mon Sep 17 00:00:00 2001 From: Milan Dankovic Date: Tue, 19 Nov 2024 16:37:03 +0100 Subject: [PATCH] Fix scalastyle in parsers.scala --- .../scala/org/apache/spark/sql/catalyst/parser/parsers.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/api/src/main/scala/org/apache/spark/sql/catalyst/parser/parsers.scala b/sql/api/src/main/scala/org/apache/spark/sql/catalyst/parser/parsers.scala index 9d17c70678242..54af195847dac 100644 --- a/sql/api/src/main/scala/org/apache/spark/sql/catalyst/parser/parsers.scala +++ b/sql/api/src/main/scala/org/apache/spark/sql/catalyst/parser/parsers.scala @@ -419,7 +419,7 @@ case class UnclosedCommentProcessor(command: String, tokenStream: CommonTokenStr ctx: SqlBaseParser.CompoundOrSingleStatementContext): Unit = { // Same as in exitSingleStatement, we shouldn't parse the comments in SET command. if (Option(ctx.singleStatement()).forall( - !_.setResetStatement().isInstanceOf[SqlBaseParser.SetConfigurationContext])) { + !_.setResetStatement().isInstanceOf[SqlBaseParser.SetConfigurationContext])) { checkUnclosedComment(tokenStream, command) } }