# Copyright Materialize, Inc. and contributors. All rights reserved. # # Use of this software is governed by the Business Source License # included in the LICENSE file at the root of this repository. # # As of the Change Date specified in that file, in accordance with # the Business Source License, use of this software will be governed # by the Apache License, Version 2.0. # Tests for panics in the optimizer pipeline. Unfortunately we don't have a good # way to inject a panic after the global optimization stage, which is why we # only test that: # # 1. The RAW returns a result. # 2. The DECORRELATED returns a result. # 3. The OPTIMIZED plan an error. # 4. The PHYSICAL PLAN returns an error. # 5. The OPTIMIZER TRACE returns a partial. # # Further, we do this for each statement type supported as an explainee. # Enable feature flags required for this test simple conn=mz_system,user=mz_system ALTER SYSTEM SET unsafe_enable_unsafe_functions = true ---- COMPLETE 0 mode cockroach # EXPLAIN ... BROKEN