MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / source

Method source

src/transform/src/typecheck.rs:1879–1897  ·  view source on GitHub ↗

The source of the type error

(&self)

Source from the content-addressed store, hash-verified

1877impl<'a> TypeError<'a> {
1878 /// The source of the type error
1879 pub fn source(&self) -> Option<&'a MirRelationExpr> {
1880 use TypeError::*;
1881 match self {
1882 Unbound { source, .. }
1883 | NoSuchColumn { source, .. }
1884 | MismatchColumn { source, .. }
1885 | MismatchColumns { source, .. }
1886 | BadConstantRowLen { source, .. }
1887 | BadConstantRow { source, .. }
1888 | BadProject { source, .. }
1889 | BadJoinEquivalence { source, .. }
1890 | BadTopKGroupKey { source, .. }
1891 | BadTopKOrdering { source, .. }
1892 | BadLetRecBindings { source }
1893 | Shadowing { source, .. }
1894 | DisallowedDummy { source, .. } => Some(source),
1895 Recursion { .. } => None,
1896 }
1897 }
1898
1899 fn humanize<H>(&self, humanizer: &H, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result
1900 where

Callers 13

bootstrapMethod · 0.45
detailMethod · 0.45
sequence_alter_sourceMethod · 0.45
try_run_fail_sqlFunction · 0.45
humanizeMethod · 0.45
unwrap_db_errorMethod · 0.45
handle_webhookFunction · 0.45

Calls

no outgoing calls

Tested by 2

unwrap_db_errorMethod · 0.36
run_testsFunction · 0.36