impala-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "bharath v (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IMPALA-5533) Don't pass StorageDescriptor around in HdfsTable class methods
Date Mon, 19 Jun 2017 20:06:00 GMT
bharath v created IMPALA-5533:
---------------------------------

             Summary: Don't pass StorageDescriptor around in HdfsTable class methods
                 Key: IMPALA-5533
                 URL: https://issues.apache.org/jira/browse/IMPALA-5533
             Project: IMPALA
          Issue Type: Bug
            Reporter: bharath v
            Assignee: bharath v
            Priority: Minor


An example usage, we can even get the location from HdfsPartition object.

{noformat}
  private void loadPartitionFileMetadata(StorageDescriptor storageDescriptor,
      HdfsPartition partition) throws Exception {
    Preconditions.checkNotNull(storageDescriptor);
    Preconditions.checkNotNull(partition);
    Path partDirPath = new Path(storageDescriptor.getLocation());
    FileSystem fs = partDirPath.getFileSystem(CONF);
    if (!fs.exists(partDirPath)) return;
    refreshFileMetadata(partition);
  }

{noformat}

Audit its usage and remove it.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message