Class Rely
- Inheritance
-
Rely
- Implements
-
- Inherited Members
-
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
protected Rely(Rely original)
Parameters
| Type |
Name |
Description |
| Rely |
original |
|
Properties
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
protected virtual Type EqualityContract { get; }
Property Value
Methods
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
public virtual bool Equals(Rely? other)
Parameters
| Type |
Name |
Description |
| Rely |
other |
|
Returns
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Returns
public override string ToString()
Returns
Operators
public static bool operator ==(Rely? left, Rely? right)
Parameters
| Type |
Name |
Description |
| Rely |
left |
|
| Rely |
right |
|
Returns
public static bool operator !=(Rely? left, Rely? right)
Parameters
| Type |
Name |
Description |
| Rely |
left |
|
| Rely |
right |
|
Returns