hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Danilov (JIRA)" <>
Subject [jira] [Created] (HIVE-17331) Path must be used as key type of the pathToAlises
Date Wed, 16 Aug 2017 08:32:00 GMT
Oleg Danilov created HIVE-17331:

             Summary: Path must be used as key type of the pathToAlises
                 Key: HIVE-17331
             Project: Hive
          Issue Type: Bug
            Reporter: Oleg Danilov
            Assignee: Oleg Danilov
            Priority: Minor

This code uses String instead of Path as key type of the pathToAlises, so seems like get(String)
always null.

        for (int pos = 0; pos < size; pos++) {
          String taskTmpDir = taskTmpDirLst.get(pos);
          TableDesc tt_desc = tt_descLst.get(pos);
          MapWork mWork = plan.getMapWork();
          if (mWork.getPathToAliases().get(taskTmpDir) == null) {
            taskTmpDir = taskTmpDir.intern();
            Path taskTmpDirPath = StringInternUtils.internUriStringsInPath(new Path(taskTmpDir));
            mWork.addPathToAlias(taskTmpDirPath, taskTmpDir);
            mWork.addPathToPartitionInfo(taskTmpDirPath, new PartitionDesc(tt_desc, null));
            mWork.getAliasToWork().put(taskTmpDir, topOperators.get(pos));

This message was sent by Atlassian JIRA

View raw message