File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
sql/hive/src/main/scala/org/apache/spark/sql/hive Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -205,7 +205,7 @@ private[hive] object HiveQl {
205
205
extends Exception (s " Failed to parse: $sql" , cause)
206
206
207
207
class SemanticException (msg : String )
208
- extends Exception (msg)
208
+ extends Exception (s " Error in semantic analysis: $ msg" )
209
209
210
210
/**
211
211
* Returns the AST for the given SQL string.
@@ -584,7 +584,7 @@ private[hive] object HiveQl {
584
584
val withHaving = havingClause.map { h =>
585
585
586
586
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" )
588
588
}
589
589
590
590
val Seq (havingExpr) = h.getChildren.toSeq
You can’t perform that action at this time.
0 commit comments