-
Notifications
You must be signed in to change notification settings - Fork 76
feat: implement manifest group #455
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
base: main
Are you sure you want to change the base?
Conversation
79f27c9 to
1635143
Compare
1635143 to
22b3cba
Compare
| auto old_predicate = std::move(manifest_entry_predicate_); | ||
| manifest_entry_predicate_ = [old_predicate = std::move(old_predicate), | ||
| predicate = | ||
| std::move(predicate)](const ManifestEntry& entry) { | ||
| return old_predicate(entry) && predicate(entry); | ||
| }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| auto old_predicate = std::move(manifest_entry_predicate_); | |
| manifest_entry_predicate_ = [old_predicate = std::move(old_predicate), | |
| predicate = | |
| std::move(predicate)](const ManifestEntry& entry) { | |
| return old_predicate(entry) && predicate(entry); | |
| }; | |
| manifest_entry_predicate_ = [old_predicate = std::move(manifest_entry_predicate_), | |
| predicate = | |
| std::move(predicate)](const ManifestEntry& entry) { | |
| return old_predicate(entry) && predicate(entry); | |
| }; |
| std::vector<std::shared_ptr<FileScanTask>> file_tasks; | ||
| file_tasks.reserve(tasks.size()); | ||
| for (auto& task : tasks) { | ||
| file_tasks.push_back(std::static_pointer_cast<FileScanTask>(task)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| file_tasks.push_back(std::static_pointer_cast<FileScanTask>(task)); | |
| file_tasks.push_back(internal::checked_pointer_cast<FileScanTask>(task)); |
| ICEBERG_ASSIGN_OR_RAISE(auto manifest_evaluator, get_manifest_evaluator(spec_id)); | ||
| ICEBERG_ASSIGN_OR_RAISE(bool should_match, manifest_evaluator->Evaluate(manifest)); | ||
| if (!should_match) { | ||
| continue; // Skip this manifest because it doesn't match partition filter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| continue; // Skip this manifest because it doesn't match partition filter | |
| // Skip this manifest because it doesn't match partition filter | |
| continue; |
src/iceberg/constants.h
Outdated
| constexpr int64_t kInvalidSnapshotId = -1; | ||
| /// \brief Stand-in for the current sequence number that will be assigned when the commit | ||
| /// is successful. This is replaced when writing a manifest list by the ManifestFile | ||
| /// wrapper |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: wrapper -> adapter, which matches the code better.
No description provided.