Grain relationships

Operators' compute bindings can be inspected to infer semantical source-to-target relationships between source and target profile grains.

Relationship Source compared with target
same Both have the same resolutions.
expand The target refines the source by adding dimensions or selecting finer resolutions.
collapse The target is coarser by removing dimensions or selecting coarser resolutions.
emerge No source profile exists; the operator introduces data at the target grain.
vanish No target profile exists; the operator consumes the source grain without producing a profile.
fuse Multiple sources become one target.
unrelated Neither grain refines the other through the declared hierarchy.
not_applicable A declared source cannot be resolved, or a profile grain is invalid.

The comparison uses resolution hierarchy, not dimension counts. Sources include logical feature owners and dataframe profiles. These labels do not perform calculations or select a merge.

Grain relationship visualization

The following examples compare source and target profile grain relationships. They show how the observation keys relate, not how a function computes or transforms feature values.

Same grain

Both profiles select the same dimensions and resolutions. Their feature sets and row scopes can still differ.

SOURCE PROFILE / one row per pump and timestamp
cooling pumptimestamp
P-0109:00
P-0109:01
same grain
TARGET PROFILE / one row per pump and timestamp
cooling pumptimestamp
P-0109:00
P-0109:01

Profiles can also share a grain while covering different row scopes:

SOURCE PROFILE / wider row scope
cooling pumptimestamp
P-0108:59
P-0109:00
P-0109:01
P-0109:02
same grain
TARGET PROFILE / narrower row scope
cooling pumptimestamp
P-0109:00
P-0109:01
P-0109:02

Expand

The target refines the source by adding a dimension or selecting a finer resolution. This example adds the timestamp dimension.

SOURCE PROFILE / one row per pump
cooling pump
P-01
target refines source
TARGET PROFILE / one row per pump and timestamp
cooling pumptimestamp
P-0109:00
P-0109:01
P-0109:02

Collapse

The target is coarser by removing a dimension or selecting a coarser resolution. This example removes the timestamp dimension. The relationship does not specify how target feature values are calculated.

SOURCE PROFILE / one row per pump and timestamp
cooling pumptimestamp
P-0109:00
P-0109:01
P-0109:02
target is coarser
TARGET PROFILE / one row per pump
cooling pump
P-01

Emerge

An operator introduces data at a target profile when no source profile exists. The relationship is determined by the missing source profile, not by the function's external data source.

SOURCE PROFILE / absent
source profilegrain
nonenone
emerge
TARGET PROFILE / one row per pump and timestamp
cooling pumptimestamp
P-0109:00
P-0109:01

Vanish

An operator consumes data from a source profile without producing a target profile. The relationship describes the profile boundary, not the destination of any external write.

SOURCE PROFILE / one row per pump and timestamp
cooling pumptimestamp
P-0109:00
P-0109:01
vanish
TARGET PROFILE / absent
target profilegrain
nonenone