Skip to content

Commit 83f1340

Browse files
committed
scalastyle fixes
1 parent 18387f1 commit 83f1340

File tree

1 file changed

+2
-2
lines changed
  • sql/hive/src/main/scala/org/apache/spark/sql/hive

1 file changed

+2
-2
lines changed

sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveQl.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ private[hive] object HiveQl {
205205
extends Exception(s"Failed to parse: $sql", cause)
206206

207207
class SemanticException(msg: String)
208-
extends Exception(msg)
208+
extends Exception(s"Error in semantic analysis: $msg")
209209

210210
/**
211211
* Returns the AST for the given SQL string.
@@ -584,7 +584,7 @@ private[hive] object HiveQl {
584584
val withHaving = havingClause.map { h =>
585585

586586
if (groupByClause == None) {
587-
throw new SemanticException("Error in semantic analysis: HAVING specified without GROUP BY")
587+
throw new SemanticException("HAVING specified without GROUP BY")
588588
}
589589

590590
val Seq(havingExpr) = h.getChildren.toSeq

0 commit comments

Comments
 (0)