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

Method is_localized

src/expr/src/relation/join_input_mapper.rs:249–256  ·  view source on GitHub ↗

Returns whether the given expr refers to columns of only the `index`th input.

(&self, expr: &impl Columns, index: usize)

Source from the content-addressed store, hash-verified

247
248 /// Returns whether the given expr refers to columns of only the `index`th input.
249 pub fn is_localized(&self, expr: &impl Columns, index: usize) -> bool {
250 if let Some(single_input) = self.single_input(expr) {
251 if single_input == index {
252 return true;
253 }
254 }
255 false
256 }
257
258 /// Takes an expression in the global context and looks in `equivalences`
259 /// for an equivalent expression (also expressed in the global context) that

Calls 1

single_inputMethod · 0.80

Tested by

no test coverage detected