carbondata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From manishgupta88 <...@git.apache.org>
Subject [GitHub] carbondata pull request #1097: [WIP] [CARBONDATA-1229] Skip dictionary and d...
Date Tue, 27 Jun 2017 09:00:41 GMT
Github user manishgupta88 commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/1097#discussion_r124217843
  
    --- Diff: processing/src/main/java/org/apache/carbondata/processing/newflow/steps/DataWriterProcessorStepImpl.java
---
    @@ -83,10 +87,20 @@ public CarbonFactDataHandlerModel getDataHandlerModel(int partitionId)
{
         return model;
       }
     
    -  @Override public Iterator<CarbonRowBatch>[] execute() throws CarbonDataLoadingException
{
    -    Iterator<CarbonRowBatch>[] iterators = child.execute();
    +  @Override public Iterator<CarbonRowBatch>[] execute() throws CarbonDataLoadingException{
         CarbonTableIdentifier tableIdentifier =
             configuration.getTableIdentifier().getCarbonTableIdentifier();
    +    try {
    +      if (!FileFactory.isFileExist(
    +          configuration.getTableIdentifier().getTablePath() + "/Metadata/" + tableIdentifier.getTableId(),
FileFactory.getFileType(
    +              configuration.getTableIdentifier().getTablePath() + "/Metadata/" + tableIdentifier.getTableId())))
{
    +        LOGGER.error("Table does not exists: " + tableIdentifier.getTableUniqueName());
    +        return null;
    +      }
    +    } catch (IOException e) {
    +
    +    }
    +    Iterator<CarbonRowBatch>[] iterators = child.execute();
    --- End diff --
    
    Remove this check as it is not required in executor


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message