Skip to content

Conversation

vahidlazio
Copy link
Contributor

No description provided.

@vahidlazio vahidlazio force-pushed the update-sticky branch 5 times, most recently from a9676ef to 9256078 Compare October 3, 2025 11:46
Copy link
Contributor

@andreas-karlsson andreas-karlsson left a comment

Choose a reason for hiding this comment

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

I left a few comments, but didn't really check the materialization logic, it's too dense to follow, but I trust it's doing the right thing! 🙂

use core::marker::PhantomData;
use fastmurmur3::murmur3_x64_128;
use std::collections::{HashMap, HashSet};
use std::collections::{BTreeMap, HashMap, HashSet};
Copy link
Contributor

Choose a reason for hiding this comment

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

Why a BTreeMap? Do we still have protos configured to use btrees?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah .. seems like it.


message MaterializationContext {
map<string, MaterializationInfo> unit_materialization_info = 1;
message MaterializationMap {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why changing name to Map instead of Context?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

because it's a map and just thought to remove an unnecessary nested object , and that's how it works also in shadow resolver and flags resolver. so used the same type.


// Context about the materialization required for the resolve
MaterializationContext materialization_context = 7;
map<string, MaterializationMap> materializations_per_unit = 2;
Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't it a problem that we can't differentiate between an empty map and not set? I.e. how does the resolver know if we have fetched everything, but it was empty OR we haven't fetched?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we will return the default object for materialization info, and set unit_in_info to false.

@vahidlazio vahidlazio merged commit fae11b1 into main Oct 3, 2025
6 checks passed
vahidlazio added a commit that referenced this pull request Oct 3, 2025
@github-actions github-actions bot mentioned this pull request Oct 3, 2025
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.

2 participants