|
21 | 21 | expand_template_data, |
22 | 22 | ) |
23 | 23 | from sqlbuild.compiler.compile.constants import COMPILE_INPUT_READS, MACRO_CALL_PATTERN |
24 | | -from sqlbuild.compiler.compile.exceptions import CompileInputError, NativeModelConfigMismatchError |
| 24 | +from sqlbuild.compiler.compile.exceptions import CompileInputError |
25 | 25 | from sqlbuild.compiler.compile.main._build_compile_inputs import build_compile_inputs |
26 | 26 | from sqlbuild.compiler.compile.models import CompileAdapterContext, CompileProjectInputs |
27 | 27 | from sqlbuild.compiler.discovery.main._model_schema_columns import parse_schema_columns |
28 | 28 | from sqlbuild.compiler.discovery.main.discover import discover_project_inputs |
29 | 29 | from sqlbuild.compiler.discovery.models import DiscoveredProjectInputs, DiscoveredSqlModelFile |
30 | 30 | from sqlbuild.compiler.frontier.constants import COMPILER_ENGINE_ENV_VAR |
| 31 | +from sqlbuild.compiler.frontier.exceptions import NativeStageMismatchError |
31 | 32 | from sqlbuild.compiler.model_config.constants import INVALID_OUTCOME, UNSUPPORTED_OUTCOME |
32 | 33 | from sqlbuild.compiler.model_config.main._native_config_contains_macro_call import ( |
33 | 34 | native_config_contains_macro_call, |
@@ -227,7 +228,7 @@ def native_rejection_error( |
227 | 228 | _ = model_config_engine_outcome( |
228 | 229 | project_dir=project_dir, engine="native-preview", monkeypatch=monkeypatch |
229 | 230 | ) |
230 | | - except NativeModelConfigMismatchError as error: |
| 231 | + except NativeStageMismatchError as error: |
231 | 232 | return str(error) |
232 | 233 | return "no error" |
233 | 234 |
|
@@ -332,7 +333,7 @@ def _native_expansion(value: object, flags: TemplateFlags) -> object: |
332 | 333 | ) |
333 | 334 | except CompileInputError: |
334 | 335 | return _RAISES |
335 | | - except NativeModelConfigMismatchError as error: |
| 336 | + except NativeStageMismatchError as error: |
336 | 337 | return str(error) |
337 | 338 | return (_expansion_shape(result), reads.environment_names, reads.read_run_id) |
338 | 339 |
|
|
0 commit comments