Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Adds test case
  • Loading branch information
liancheng committed Nov 9, 2015
commit bb4ac2e75c0325db3002c0a3e4a3da18790c9e10
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ import org.apache.thrift.transport.TSocket
import org.scalatest.BeforeAndAfterAll

import org.apache.spark.sql.hive.HiveContext
import org.apache.spark.sql.hive.test.TestHive
import org.apache.spark.sql.test.ProcessTestUtils.ProcessOutputCapturer
import org.apache.spark.util.Utils
import org.apache.spark.{Logging, SparkFunSuite}
Expand Down Expand Up @@ -462,6 +463,14 @@ class HiveThriftBinaryServerSuite extends HiveThriftJdbcTest {
assert(conf.get("spark.sql.hive.version") === Some("1.2.1"))
}
}

test("SPARK-11191 add jar using path with URL scheme") {
withJdbcStatement { statement =>
val funcJar = TestHive.getHiveFile("TestUDTF.jar").getCanonicalPath
val jarURL = s"file:///$funcJar"
statement.executeQuery(s"ADD JAR $jarURL")
}
}
}

class HiveThriftHttpServerSuite extends HiveThriftJdbcTest {
Expand Down