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

SparkUtilities.getFileName passes File.separator to String.split() method

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.2.0
    • Spark
    • None

    Description

      String.split() method expects regex. This is why File.separator can not be passed to split.
      In this particular case we can use FilenameUtils.getName to get file name

      Attachments

        1. HIVE-9948.1.patch
          1 kB
          Alexander Pivovarov

        Issue Links

          Activity

            People

              apivovarov Alexander Pivovarov
              apivovarov Alexander Pivovarov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: