pub struct TableRead {
pub reference: TableReference,
pub resolution: ResolutionKind,
}Expand description
One read-side occurrence of a TableReference, pairing the
identity with how the resolver resolved it (ResolutionKind).
The table-granularity mirror of ColumnRead. Read-side surfaces
(TableOperation::reads and TableLineageEdge::source) use this
wrapper so each occurrence can carry resolution metadata while
TableReference stays identity-only. The write-side counterpart is
TableWrite (TableOperation::writes, TableLineageEdge::target).
Unlike ColumnRead, reference is always present: a table’s
name is written out in the SQL, so even an
Ambiguous table read (the catalog
holds several tables matching an under-qualified name) still surfaces
the reference as written. Unresolved
therefore never arises at table granularity — it is columns-only.
The resolution records how the catalog matched the table:
Cataloged for a unique registered hit,
Ambiguous for several, and
Inferred for a catalog miss or
catalog-less mode.
Fields§
§reference: TableReference§resolution: ResolutionKind