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-3371] Fix ArrayIndexOutOfBoundsException of compaction after sort_columns modification #3201

Closed

Conversation

QiangCai
Copy link
Contributor

@QiangCai QiangCai commented May 5, 2019

Modification:

  1. SegmentPropertiesWrapper should check the column order for different segments
    Because sort_columns modification can change the column order.
  2. dictionaryColumnChunkIndex of blockExecutionInfo should keep projection order for compaction
  3. if column drift happened, it should convert measure to dimension in RawResultIterator
  • Any interfaces changed?
    no

  • Any backward compatibility impacted?
    no

  • Document update required?
    no

  • Testing done
    Please provide details on
    - Whether new unit test cases have been added or why no new tests are required?
    added unit test cases
    - How it is tested? Please attach test report.
    unit test cases passed
    - Is it a performance related change? Please attach the performance test report.
    - Any additional information to help reviewers in testing this change.

  • For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.
    small chagnes

@CarbonDataQA
Copy link

Build Failed with Spark 2.3.2, Please check CI http://136.243.101.176:8080/job/carbondataprbuilder2.3/11348/

@CarbonDataQA
Copy link

Build Failed with Spark 2.2.1, Please check CI http://95.216.28.178:8080/job/ApacheCarbonPRBuilder1/3283/

@CarbonDataQA
Copy link

Build Failed with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder2.1/3084/

@QiangCai QiangCai force-pushed the sort_columns_compaction_issue branch from 49fd2f5 to d7fddd5 Compare May 5, 2019 08:06
@CarbonDataQA
Copy link

Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder2.1/3085/

@CarbonDataQA
Copy link

Build Failed with Spark 2.3.2, Please check CI http://136.243.101.176:8080/job/carbondataprbuilder2.3/11349/

@CarbonDataQA
Copy link

Build Failed with Spark 2.2.1, Please check CI http://95.216.28.178:8080/job/ApacheCarbonPRBuilder1/3284/

@CarbonDataQA
Copy link

Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder2.1/3089/

@CarbonDataQA
Copy link

Build Success with Spark 2.3.2, Please check CI http://136.243.101.176:8080/job/carbondataprbuilder2.3/11353/

@CarbonDataQA
Copy link

Build Success with Spark 2.2.1, Please check CI http://95.216.28.178:8080/job/ApacheCarbonPRBuilder1/3288/

@QiangCai
Copy link
Contributor Author

QiangCai commented May 7, 2019

@ravipesala please review again

@CarbonDataQA
Copy link

Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder2.1/3113/

@CarbonDataQA
Copy link

Build Success with Spark 2.2.1, Please check CI http://95.216.28.178:8080/job/ApacheCarbonPRBuilder1/3312/

@CarbonDataQA
Copy link

Build Success with Spark 2.3.2, Please check CI http://136.243.101.176:8080/job/carbondataprbuilder2.3/11377/

@ravipesala
Copy link
Contributor

@QiangCai Please resolve conflicts

@QiangCai QiangCai force-pushed the sort_columns_compaction_issue branch from f344fb7 to dfcccb7 Compare May 8, 2019 09:12
@CarbonDataQA
Copy link

Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder2.1/3134/

@CarbonDataQA
Copy link

Build Success with Spark 2.3.2, Please check CI http://136.243.101.176:8080/job/carbondataprbuilder2.3/11399/

@CarbonDataQA
Copy link

Build Success with Spark 2.2.1, Please check CI http://95.216.28.178:8080/job/ApacheCarbonPRBuilder1/3333/

@ravipesala
Copy link
Contributor

LGTM

@asfgit asfgit closed this in 24753a9 May 9, 2019
asfgit pushed a commit that referenced this pull request May 16, 2019
…ter sort_columns modification

Modification:

SegmentPropertiesWrapper should check the column order for different segments
Because sort_columns modification can change the column order.
dictionaryColumnChunkIndex of blockExecutionInfo should keep projection order for compaction
if column drift happened, it should convert measure to dimension in RawResultIterator

This closes #3201
qiuchenjian pushed a commit to qiuchenjian/carbondata that referenced this pull request Jun 14, 2019
…ter sort_columns modification

Modification:

SegmentPropertiesWrapper should check the column order for different segments
Because sort_columns modification can change the column order.
dictionaryColumnChunkIndex of blockExecutionInfo should keep projection order for compaction
if column drift happened, it should convert measure to dimension in RawResultIterator

This closes apache#3201
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.

None yet

3 participants