carbondata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kunal642 <...@git.apache.org>
Subject [GitHub] incubator-carbondata pull request #724: [CARBONDATA-847] Fixed NullPointerEx...
Date Wed, 05 Apr 2017 08:54:27 GMT
Github user kunal642 commented on a diff in the pull request:

    https://github.com/apache/incubator-carbondata/pull/724#discussion_r109861944
  
    --- Diff: core/src/main/java/org/apache/carbondata/core/scan/collector/impl/DictionaryBasedVectorResultCollector.java
---
    @@ -51,8 +51,8 @@
     
       public DictionaryBasedVectorResultCollector(BlockExecutionInfo blockExecutionInfos)
{
         super(blockExecutionInfos);
    -    queryDimensions = tableBlockExecutionInfos.getQueryDimensions();
    -    queryMeasures = tableBlockExecutionInfos.getQueryMeasures();
    +    queryDimensions = tableBlockExecutionInfos.getActualQueryDimensions();
    --- End diff --
    
    getQueryDimensions or getQueryMeasures does not contain the newly added columns so when
we try to get the vector from allColumnInfo which has the size [measures + dimensions] we
would get a ArrayIndexOutOfBoundException because it will not have the space for the new column.



---
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