diff options
| author | vitya-smirnov <[email protected]> | 2025-10-20 15:43:33 +0300 |
|---|---|---|
| committer | vitya-smirnov <[email protected]> | 2025-10-20 16:32:51 +0300 |
| commit | 2031733477ed2cb915aa37e7eb14bd9eb3d5d8f9 (patch) | |
| tree | 36e3f7184ade6465c96931ec9a792c94f6504f08 /yql/essentials/sql/v1/sql_into_tables.cpp | |
| parent | dbc560aad32360d83f45d7854b01617b185acae4 (diff) | |
Use Y_UNREACHABLE for ALT_NOT_SET
It is not convinient to grep "You should change implementation according
to grammar changes" every time you need it during new translation
feature. AI does not always suggests it. More convinient is to use
just `Y_UNREACHABLE` as `ALT_NOT_SET` is actually unreachable.
commit_hash:132f264e9f781b8c2433fb1f12374f7684466370
Diffstat (limited to 'yql/essentials/sql/v1/sql_into_tables.cpp')
| -rw-r--r-- | yql/essentials/sql/v1/sql_into_tables.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yql/essentials/sql/v1/sql_into_tables.cpp b/yql/essentials/sql/v1/sql_into_tables.cpp index 9ea8bd36f04..361e035828b 100644 --- a/yql/essentials/sql/v1/sql_into_tables.cpp +++ b/yql/essentials/sql/v1/sql_into_tables.cpp @@ -51,7 +51,7 @@ TNodePtr TSqlIntoTable::Build(const TRule_into_table_stmt& node) { modeTokens = {modeBlock.GetAlt6().GetToken1()}; break; case TRule_into_table_stmt_TBlock1::AltCase::ALT_NOT_SET: - Y_ABORT("You should change implementation according to grammar changes"); + Y_UNREACHABLE(); } TVector<TString> modeStrings; @@ -140,7 +140,7 @@ TNodePtr TSqlIntoTable::Build(const TRule_into_table_stmt& node) { break; } case TRule_simple_table_ref_core::AltCase::ALT_NOT_SET: - Y_ABORT("You should change implementation according to grammar changes"); + Y_UNREACHABLE(); } bool withTruncate = false; |
