Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
HIVE-9664 introduced a change that uses URIs in SessionState to handle adding jars or other dependencies in a Hive session, but neglects to handle URIs as actual URIs, i.e. calling toString() on them.
This resulted in a regression as a path such as /tmp/blabla-[special].jar was working before HIVE-9664 and now it's throwing a URISyntaxException error.
I think it's fair to make the users provide an URL which is encoded (blabla-%5Bspecial%5D.jar), but then the issue of the current implementation will be the inability to find the file on FS, because Hive will look for it in blabla-%5Bspecial%5D.jar format, instead of blabla-[special].jar.