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

Method product

src/expr/src/relation.rs:1234–1245  ·  view source on GitHub ↗

Form the Cartesian outer-product of rows in both inputs.

(mut self, right: Self)

Source from the content-addressed store, hash-verified

1232
1233 /// Form the Cartesian outer-product of rows in both inputs.
1234 pub fn product(mut self, right: Self) -> Self {
1235 if right.is_constant_singleton() {
1236 self
1237 } else if self.is_constant_singleton() {
1238 right
1239 } else if let MirRelationExpr::Join { inputs, .. } = &mut self {
1240 inputs.push(right);
1241 self
1242 } else {
1243 MirRelationExpr::join(vec![self, right], vec![])
1244 }
1245 }
1246
1247 /// Performs a relational equijoin among the input collections.
1248 ///

Callers 3

anti_lookupMethod · 0.45
arb_arrayFunction · 0.45
startFunction · 0.45

Calls 2

is_constant_singletonMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected