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

[BugFix] Fix some bug of light schema change #30485

Merged
merged 2 commits into from
Sep 13, 2023

Conversation

sevev
Copy link
Contributor

@sevev sevev commented Sep 6, 2023

This pr fixes some bugs:

  1. This pr([Feature] Support light schema change of adding and dropping columns #26246) supports light schema change and we add tablet schema in rowset meta. But in the course of multiple conflict resolution, the associated logic is lost. In addition, this pr change the location num of tablet_schema in RowsetMetaPB for better compatibility.
  2. When we create a column iterator in segment, if we provide tablet schema in read options, we should use the given tablet schema in create column iterator.

What type of PR is this:

  • BugFix
  • Feature
  • Enhancement
  • Refactor
  • UT
  • Doc
  • Tool

Does this PR entail a change in behavior?

  • Yes, this PR will result in a change in behavior.
  • No, this PR will not result in a change in behavior.

If yes, please specify the type of change:

  • Interface/UI changes: syntax, type conversion, expression evaluation, display information
  • Parameter changes: default values, similar parameters but with different default values
  • Policy changes: use new policy to replace old one, functionality automatically enabled
  • Feature removed
  • Miscellaneous: upgrade & downgrade compatibility, etc.

Checklist:

  • I have added test cases for my bug fix or my new feature
  • This pr needs user documentation (for new or modified features or behaviors)
    • I have added documentation for my new feature or new function

Bugfix cherry-pick branch check:

  • I have checked the version labels which the pr will be auto-backported to the target branch
    • 3.1
    • 3.0
    • 2.5
    • 2.4

@mergify mergify bot assigned sevev Sep 6, 2023
chaoyli
chaoyli previously approved these changes Sep 8, 2023
Signed-off-by: zhangqiang <qiangzh95@gmail.com>
Signed-off-by: zhangqiang <qiangzh95@gmail.com>
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.6% 0.6% Duplication

@sevev sevev changed the title [BugFix] Add tablet schema to rowset meta for light schema change [BugFix] Fix some bug of light schema change Sep 13, 2023
@wanpengfei-git
Copy link
Collaborator

[FE Incremental Coverage Report]

😍 pass : 0 / 0 (0%)

@wanpengfei-git
Copy link
Collaborator

[BE Incremental Coverage Report]

😍 pass : 2 / 2 (100.00%)

file detail

path covered_line new_line coverage not_covered_line_detail
🔵 src/storage/rowset/rowset_writer.cpp 2 2 100.00% []

@sevev sevev merged commit 5e0649e into StarRocks:main Sep 13, 2023
@sevev
Copy link
Contributor Author

sevev commented Sep 13, 2023

@mergify backport branch-3.2

@mergify
Copy link
Contributor

mergify bot commented Sep 13, 2023

backport branch-3.2

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Sep 13, 2023
This pr fixes some bugs:

This pr([Feature] Support light schema change of adding and dropping columns #26246) supports light schema change and we add tablet schema in rowset meta. But in the course of multiple conflict resolution, the associated logic is lost. In addition, this pr change the location num of tablet_schema in RowsetMetaPB for better compatibility.
When we create a column iterator in segment, if we provide tablet schema in read options, we should use the given tablet schema in create column iterator.

Signed-off-by: zhangqiang <qiangzh95@gmail.com>
(cherry picked from commit 5e0649e)
sevev added a commit that referenced this pull request Sep 14, 2023
Co-authored-by: zhangqiang <qiangzh95@gmail.com>
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