Skip to content

Conversation

@plypaul
Copy link
Contributor

@plypaul plypaul commented Oct 14, 2025

This PR adds the dimension_lookup to ModelObjectLookup as a small step towards migrating SemanticModelLookup to ModelObjectLookup. The goal of the migration was to simplify the lookup classes and to move more lookups to the semantic graph for performance reasons.

@cla-bot cla-bot bot added the cla:yes label Oct 14, 2025
@plypaul plypaul marked this pull request as ready for review October 14, 2025 17:59
@plypaul plypaul requested a review from a team as a code owner October 14, 2025 17:59
return DimensionLookup(self._semantic_model.dimensions)

@cached_property
def resolved_primary_entity_name(self) -> str:
Copy link
Contributor

Choose a reason for hiding this comment

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

Our primary entity validation seems to only guarantee that semantic models with dimensions have a primary entity (i.e., if you have a model with entities only it doesn't need to have a primary entity). Can we update this code to avoid erroring if we encounter a model like that?

Copy link
Contributor

Choose a reason for hiding this comment

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

We might not have any tests for this type of model, might be good to add one!

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.

3 participants