Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CARBONDATA-847] Fixed NullPointerException for DictionaryBasedVectorResultCollector during alter table #724

Closed
wants to merge 1 commit into from

Conversation

kunal642
Copy link
Contributor

@kunal642 kunal642 commented Apr 3, 2017

No description provided.

@asfbot
Copy link

asfbot commented Apr 3, 2017

Can one of the admins verify this patch?

2 similar comments
@asfbot
Copy link

asfbot commented Apr 3, 2017

Can one of the admins verify this patch?

@asfbot
Copy link

asfbot commented Apr 3, 2017

Can one of the admins verify this patch?

@CarbonDataQA
Copy link

Build Success with Spark 1.6.2, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder/1407/

@CarbonDataQA
Copy link

Build Success with Spark 1.6.2, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder/1409/

@CarbonDataQA
Copy link

Build Success with Spark 1.6.2, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder/1410/

@@ -51,8 +51,8 @@

public DictionaryBasedVectorResultCollector(BlockExecutionInfo blockExecutionInfos) {
super(blockExecutionInfos);
queryDimensions = tableBlockExecutionInfos.getQueryDimensions();
queryMeasures = tableBlockExecutionInfos.getQueryMeasures();
queryDimensions = tableBlockExecutionInfos.getActualQueryDimensions();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why getting actualQueryDimensions instead of queryDimensions in DictionaryBasedVectorResultCollector? But we get only queryDimensions in DictionaryBasedResultCollector

Copy link
Contributor Author

@kunal642 kunal642 Apr 5, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getQueryDimensions or getQueryMeasures do 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.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not get, if any restructuring is required then it supposed to go to RestructureBasedVectorResultCollector class right. why it comes here.

@CarbonDataQA
Copy link

Build Success with Spark 1.6.2, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder/1438/

@CarbonDataQA
Copy link

Build Success with Spark 1.6.2, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder/1484/

@ravipesala
Copy link
Contributor

LGTM

@asfgit asfgit closed this in 1624c5f Apr 6, 2017
@kunal642 kunal642 deleted the CARBONDATA-847 branch April 6, 2017 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants