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

fix: the map build_segment_id_map returns should contain format ver #11212

Merged
merged 1 commit into from
Apr 24, 2023

Conversation

dantengsky
Copy link
Member

@dantengsky dantengsky commented Apr 24, 2023

I hereby agree to the terms of the CLA available at: https://databend.rs/dev/policies/cla/

Summary

  • the map build_segment_id_map returns should contain format ver
    i.e. instead of HashMap<String, usize>, we should use HashMap<Location, usize>
  • TransformRowsFetcher should use the format version of segment to load the segment, not the version of the snapshot
  • some minor refactor (avoid unnecessary cloning)

Closes #issue

@vercel
Copy link

vercel bot commented Apr 24, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
databend ⬜️ Ignored (Inspect) Apr 24, 2023 0:58am

@dantengsky dantengsky changed the title [WIP] Fix: the map build_segment_id_map returns should contain format ver [DONOT MERGE] Fix: the map build_segment_id_map returns should contain format ver Apr 24, 2023
@dantengsky dantengsky force-pushed the fix-build_segmement-id-map branch from cce7c5f to 53f3cc7 Compare April 24, 2023 12:57
@dantengsky dantengsky changed the title [DONOT MERGE] Fix: the map build_segment_id_map returns should contain format ver Fix: the map build_segment_id_map returns should contain format ver Apr 24, 2023
@dantengsky dantengsky changed the title Fix: the map build_segment_id_map returns should contain format ver fix: the map build_segment_id_map returns should contain format ver Apr 24, 2023
@mergify mergify bot added the pr-bugfix this PR patches a bug in codebase label Apr 24, 2023
@RinChanNOWWW
Copy link
Contributor

LGTM

@dantengsky dantengsky requested a review from RinChanNOWWW April 24, 2023 13:23
@dantengsky dantengsky marked this pull request as ready for review April 24, 2023 13:25
@dantengsky dantengsky merged commit 0d2287c into databendlabs:main Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-bugfix this PR patches a bug in codebase
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants