MCPcopy Create free account
hub / github.com/bytebase/bytebase / isSyncRollup

Function isSyncRollup

backend/plugin/db/starrocks/sync.go:123–125  ·  view source on GitHub ↗

isSyncRollup reports whether a StarRocks information_schema.materialized_views row describes a synchronous rollup rather than a standalone (async) materialized view. Sync rollups are rollup indexes on the base table: they appear in that catalog with REFRESH_TYPE='ROLLUP' but have no information_sche

(refreshType string)

Source from the content-addressed store, hash-verified

121// from the materialized-view set. Only the confirmed 'ROLLUP' value is excluded — async
122// refresh types and any unknown/empty value are kept.
123func isSyncRollup(refreshType string) bool {
124 return refreshType == "ROLLUP"
125}
126
127// isMaterializedView reports whether a table row is a materialized view, based on its
128// table type and membership in the materialized-view set. StarRocks reports

Callers 3

TestIsSyncRollupFunction · 0.85
getMaterializedViewsMethod · 0.85
getMaterializedViewNamesFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestIsSyncRollupFunction · 0.68