ResetMaterialized clears only materialized chart/dimension lifecycle state. It preserves the loaded program and other planner runtime state.
()
| 97 | // |
| 98 | // It preserves the loaded program and other planner runtime state. |
| 99 | func (e *Engine) ResetMaterialized() { |
| 100 | if e == nil { |
| 101 | return |
| 102 | } |
| 103 | e.mu.Lock() |
| 104 | e.state.materialized = newMaterializedState() |
| 105 | e.state.engineEpoch++ |
| 106 | e.state.outstanding = 0 |
| 107 | e.mu.Unlock() |
| 108 | } |
| 109 | |
| 110 | // program returns the latest compiled immutable program snapshot. |
| 111 | func (e *Engine) program() *program.Program { |