Skip to content

Extend bucket index to add parquet fields to block #6721

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

yeya24
Copy link
Contributor

@yeya24 yeya24 commented Apr 24, 2025

What this PR does:

This PR extends the existing bucket index file to add parquet metadata info to blocks. Read path can use the same bucket index file to discover parquet files.

Which issue(s) this PR fixes:
Fixes #

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@dosubot dosubot bot added component/compactor storage/blocks Blocks storage engine labels Apr 24, 2025
@yeya24 yeya24 marked this pull request as draft April 24, 2025 01:48
Signed-off-by: yeya24 <[email protected]>
@pull-request-size pull-request-size bot added size/M and removed size/L labels Apr 24, 2025
Signed-off-by: yeya24 <[email protected]>
@pull-request-size pull-request-size bot added size/L and removed size/M labels Apr 24, 2025
@yeya24 yeya24 changed the title Extend bucket index to add section for parquet blocks Extend bucket index to add parquet fields to block Apr 24, 2025
@yeya24 yeya24 marked this pull request as ready for review April 24, 2025 15:53
break
}
}

for i := 0; i < len(idx.BlockDeletionMarks); i++ {
if idx.BlockDeletionMarks[i].ID == id {
idx.BlockDeletionMarks = append(idx.BlockDeletionMarks[:i], idx.BlockDeletionMarks[i+1:]...)
idx.BlockDeletionMarks = slices.Delete(idx.BlockDeletionMarks, i, i+1)
Copy link
Member

Choose a reason for hiding this comment

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

TIL! :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants