Skip to content

Commit

Permalink
more permisive checking for function registration
Browse files Browse the repository at this point in the history
  • Loading branch information
marmbrus committed May 6, 2015
1 parent da91ba7 commit e7b3941
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ class HiveContext(sc: SparkContext) extends SQLContext(sc) {
}

protected[hive] def runSqlHive(sql: String): Seq[String] = {
if (sql.toLowerCase.startsWith("create temporary function")) {
if (sql.toLowerCase.contains("create temporary function")) {
executionHive.runSqlHive(sql)
} else if (sql.trim.toLowerCase.startsWith("set")) {
metadataHive.runSqlHive(sql)
Expand Down

0 comments on commit e7b3941

Please sign in to comment.