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

Method distinct

src/expr/src/relation.rs:1379–1382  ·  view source on GitHub ↗

Removes all but the first occurrence of each row.

(self)

Source from the content-addressed store, hash-verified

1377
1378 /// Removes all but the first occurrence of each row.
1379 pub fn distinct(self) -> Self {
1380 let arity = self.arity();
1381 self.distinct_by((0..arity).collect())
1382 }
1383
1384 /// Removes all but the first occurrence of each key. Columns not included
1385 /// in the `group_key` are discarded.

Callers

nothing calls this directly

Calls 3

distinct_byMethod · 0.80
arityMethod · 0.45
collectMethod · 0.45

Tested by

no test coverage detected