We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da91ba7 commit e7b3941Copy full SHA for e7b3941
sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveContext.scala
@@ -407,7 +407,7 @@ class HiveContext(sc: SparkContext) extends SQLContext(sc) {
407
}
408
409
protected[hive] def runSqlHive(sql: String): Seq[String] = {
410
- if (sql.toLowerCase.startsWith("create temporary function")) {
+ if (sql.toLowerCase.contains("create temporary function")) {
411
executionHive.runSqlHive(sql)
412
} else if (sql.trim.toLowerCase.startsWith("set")) {
413
metadataHive.runSqlHive(sql)
0 commit comments