Karen Coppage created HIVE-23533:

             Summary: Remove an FS#exists call from AcidUtils#getLogicalLength
                 Key: HIVE-23533
                 URL: https://issues.apache.org/jira/browse/HIVE-23533
             Project: Hive
          Issue Type: Improvement
            Reporter: Karen Coppage
            Assignee: Karen Coppage

 Path lengths = OrcAcidUtils.getSideFile(file.getPath());
    if(!fs.exists(lengths)) {
      return file.getLen();
    long len = OrcAcidUtils.getLastFlushLength(fs, file.getPath());

OrcAcidUtils.getLastFlushLength also has an exists() check and returns 
Long.MAX_VALUE if false.
exists() is expensive on S3.

This message was sent by Atlassian Jira

Reply via email to