Github user jihoonson commented on a diff in the pull request:

    https://github.com/apache/tajo/pull/719#discussion_r39596419
  
    --- Diff: tajo-plan/src/main/java/org/apache/tajo/plan/LogicalPlanner.java 
---
    @@ -1398,24 +1398,18 @@ public ScanNode visitRelation(PlanContext context, 
Stack<Expr> stack, Relation e
         return targets;
       }
     
    -  private void updatePhysicalInfo(PlanContext planContext, TableDesc desc) 
{
    -    if (desc.getUri() != null &&
    -        !desc.getMeta().getStoreType().equals("SYSTEM") &&
    -        !desc.getMeta().getStoreType().equals("FAKEFILE") && // FAKEFILE 
is used for test
    -        PlannerUtil.isFileStorageType(desc.getMeta().getStoreType())) {
    +  private void updatePhysicalInfo(TableDesc desc) {
    +
    +    // FAKEFILE is used for test
    +    if (!desc.getMeta().getStoreType().equals("SYSTEM") && 
!desc.getMeta().getStoreType().equals("FAKEFILE")) {
           try {
    -        Path path = new Path(desc.getUri());
    -        FileSystem fs = 
path.getFileSystem(planContext.queryContext.getConf());
    -        FileStatus status = fs.getFileStatus(path);
    -        if (desc.getStats() != null && (status.isDirectory() || 
status.isFile())) {
    -          ContentSummary summary = fs.getContentSummary(path);
    -          if (summary != null) {
    -            long volume = summary.getLength();
    -            desc.getStats().setNumBytes(volume);
    -          }
    +        if (desc.getStats() != null) {
    +          
desc.getStats().setNumBytes(storage.getTableVolumn(desc.getUri()));
             }
           } catch (Throwable t) {
    --- End diff --
    
    This line seems to be changed to catch UnsupportedException.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to