Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-22490

Adding jars with special characters in their path throws error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0.0-alpha-1
    • 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.

      Attachments

        1. HIVE-22490.2.patch
          6 kB
          Ádám Szita
        2. HIVE-22490.1.patch
          6 kB
          Ádám Szita
        3. HIVE-22490.0.patch
          5 kB
          Ádám Szita

        Activity

          People

            szita Ádám Szita
            szita Ádám Szita
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: