class_docstr: Checks to see if a join between two semantic models should be allowed.
class_docstr_tok: ["Checks","to","see","if","a","join","between","two","semantic","models","should","be","allowed","."]
docstr: Return true if the instance sets can be joined using the given entity.
docstr_tok: ["Return","true","if","the","instance","sets","can","be","joined","using","the","given","entity","."]
code: def is_valid_instance_set_join(
      self,
      left_instance_set: InstanceSet,
      right_instance_set: InstanceSet,
      on_entity_reference: EntityReference,
  ) -> bool:
      """Return true if the instance sets can be joined using the given entity."""
      return self.is_valid_semantic_model_join(
          left_semantic_model_reference=SemanticModelJoinEvaluator._semantic_model_of_entity_in_instance_set(
              instance_set=left_instance_set,
              entity_reference=on_entity_reference,
          ),
          right_semantic_model_reference=SemanticModelJoinEvaluator._semantic_model_of_entity_in_instance_set(
              instance_set=right_instance_set,
              entity_reference=on_entity_reference,
          ),
          on_entity_reference=on_entity_reference,
      )
  
file_path: metricflow/metricflow/model/semantics/semantic_model_join_evaluator.py
imports: from __future__ import annotations
  from dataclasses import dataclass
  from typing import Dict, List, Optional
  from dbt_semantic_interfaces.pretty_print import pformat_big_objects
  from dbt_semantic_interfaces.protocols.entity import EntityType
  from dbt_semantic_interfaces.references import EntityReference, SemanticModelElementReference, SemanticModelReference
  from metricflow.instances import EntityInstance, InstanceSet
  from metricflow.protocols.semantics import SemanticModelAccessor
label_desc: Use image node_id 7 for calling the SemanticModelJoinEvaluator obj's underlying member method code with example usage: obj.is_valid_instance_set_join(left_instance_set, right_instance_set, on_entity_reference) and returns: self