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

Method is_maintained

src/sql/src/plan/query.rs:6524–6533  ·  view source on GitHub ↗

Maintained dataflows can't have a finishing applied directly. Therefore, the finishing is turned into a `TopK`.

(&self)

Source from the content-addressed store, hash-verified

6522 /// Maintained dataflows can't have a finishing applied directly. Therefore, the finishing is
6523 /// turned into a `TopK`.
6524 pub fn is_maintained(&self) -> bool {
6525 match self {
6526 QueryLifetime::OneShot => false,
6527 QueryLifetime::Index => true,
6528 QueryLifetime::MaterializedView => true,
6529 QueryLifetime::Subscribe => true,
6530 QueryLifetime::View => true,
6531 QueryLifetime::Source => true,
6532 }
6533 }
6534
6535 /// Most maintained dataflows don't allow SHOW commands currently. However, SUBSCRIBE does.
6536 pub fn allow_show(&self) -> bool {

Callers 1

plan_root_queryFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected