Table of Contents

Class Rely

Inheritance
Rely
Implements
Inherited Members
Namespace
TabularEditor.SemanticBridge.Platforms.Databricks.MetricView
Assembly
SemanticBridge.dll

Optimizer hints about a join's relationship to its source. Today this carries only AtMostOneMatch; the Databricks spec models rely: as an extensible map so additional keys may appear in future spec revisions. An explicitly-empty rely: {} in YAML deserializes to a non-null Rely with all-null fields, distinct from an omitted rely: (which leaves Rely null). Both states round-trip faithfully. Faithful round-trips are a goal of our Metric View serialization and deserialization.

public record Rely : IEquatable<Rely>
Extension Methods

Constructors

Rely()

public Rely()

Rely(Rely)

protected Rely(Rely original)

Parameters

Type Name Description
Rely original

Properties

AtMostOneMatch

When true, declares that the join has no fan-out on the "one" side: on a many-to-one join, each source row matches at most one row in the joined table; on a one-to-many join, each joined row matches at most one source row. Databricks recommends setting rely on both cardinalities when the constraint holds: it lets the engine skip unnecessary joins and reduce data scanned, especially for queries that filter on fields from the joined table. Not validated at runtime; if the asserted side actually fans out, measures return incorrect results.

public bool? AtMostOneMatch { get; set; }

Property Value

Type Description
bool?

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type Description
Type

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

Type Name Description
object obj

Returns

Type Description
bool

Equals(Rely?)

public virtual bool Equals(Rely? other)

Parameters

Type Name Description
Rely other

Returns

Type Description
bool

GetHashCode()

public override int GetHashCode()

Returns

Type Description
int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

Type Name Description
StringBuilder builder

Returns

Type Description
bool

ToString()

public override string ToString()

Returns

Type Description
string

Operators

operator ==(Rely?, Rely?)

public static bool operator ==(Rely? left, Rely? right)

Parameters

Type Name Description
Rely left
Rely right

Returns

Type Description
bool

operator !=(Rely?, Rely?)

public static bool operator !=(Rely? left, Rely? right)

Parameters

Type Name Description
Rely left
Rely right

Returns

Type Description
bool