hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tristan Buckner (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HIVE-2982) When using Inputsplits that don't extend FileInputSplits, hive attempts to create a Path with an empty string which will always crash.
Date Thu, 26 Apr 2012 21:44:49 GMT
Tristan Buckner created HIVE-2982:
-------------------------------------

             Summary: When using Inputsplits that don't extend FileInputSplits, hive attempts
to create a Path with an empty string which will always crash.
                 Key: HIVE-2982
                 URL: https://issues.apache.org/jira/browse/HIVE-2982
             Project: Hive
          Issue Type: Bug
          Components: StorageHandler
    Affects Versions: 0.7.1
            Reporter: Tristan Buckner
            Priority: Minor


The method org.apache.hadoop.hive.ql.io.HiveInputFormat$HiveInputSplit.getPath() attempts
to create a Path with an empty string:

public Path getPath() {
  if (inputSplit instanceof FileSplit) {
    return ((FileSplit) inputSplit).getPath();
  }
    return new Path("");
  }

Path doesn't take null or an empty string so this means crash if not FileSplit.

I'm not sure if some other random string would be appropriate or fix this. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message