Skip to content

Commit

Permalink
scalastyle fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
willb committed Jun 20, 2014
1 parent 18387f1 commit 83f1340
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ private[hive] object HiveQl {
extends Exception(s"Failed to parse: $sql", cause)

class SemanticException(msg: String)
extends Exception(msg)
extends Exception(s"Error in semantic analysis: $msg")

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

if (groupByClause == None) {
throw new SemanticException("Error in semantic analysis: HAVING specified without GROUP BY")
throw new SemanticException("HAVING specified without GROUP BY")
}

val Seq(havingExpr) = h.getChildren.toSeq
Expand Down

0 comments on commit 83f1340

Please sign in to comment.