Github user Parth-Brahmbhatt commented on a diff in the pull request:
https://github.com/apache/spark/pull/14720#discussion_r76334577
--- Diff:
sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveQuerySuite.scala
---
@@ -865,6 +865,16 @@ class HiveQuerySuite extends HiveComparisonTest with
BeforeAndAfter {
sql("DROP TABLE alter1")
}
+ test("SPARK-12868 ADD JAR FROM HDFS") {
+ val testJar = "hdfs://nn:8020/foo.jar"
+ // This should fail with unknown host, as its just testing the URL
parsing
+ // before SPARK-12868 it was failing with Malformed URI
+ val e = intercept[RuntimeException] {
+ sql(s"ADD JAR $testJar")
+ }
+ assert(e.getMessage.contains("java.net.UnknownHostException: nn1"))
--- End diff --
Good catch, unintentional typo. fixed.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]