diff options
author | Anton Romanov <[email protected]> | 2025-08-22 17:14:11 +0300 |
---|---|---|
committer | robot-piglet <[email protected]> | 2025-08-22 17:36:11 +0300 |
commit | a2caee2426b884f5f71512d59f69a284759397cd (patch) | |
tree | f55ef0d14e7fe485542b21f862d20e0e71e33e1c /yql/essentials/sql/v1/sql_translation.cpp | |
parent | 5c41dc204afed4149a10517c7f1ac7a234ceed8c (diff) |
Add external_data_channels_count create table feature (SQL part)
Can I use your `soroka` for push YQL part of a new feature for YDB, please?
[There](https://github.com/ydb-platform/ydb/pull/21672) is the original PR approved by Fomichev an Puchin which can't be committed directly to YDB github.
Type: feature
Component: yql
---
Co-authored-by: Tony-Romanov [[email protected]]
Pull Request resolved: https://github.com/ytsaurus/ytsaurus/pull/1414
commit_hash:c98a7b656a050b09976f22f1470ba0ab5bbb52c2
Diffstat (limited to 'yql/essentials/sql/v1/sql_translation.cpp')
-rw-r--r-- | yql/essentials/sql/v1/sql_translation.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/yql/essentials/sql/v1/sql_translation.cpp b/yql/essentials/sql/v1/sql_translation.cpp index 4814f336eff..d6a420949c3 100644 --- a/yql/essentials/sql/v1/sql_translation.cpp +++ b/yql/essentials/sql/v1/sql_translation.cpp @@ -2394,6 +2394,15 @@ bool TSqlTranslation::StoreTableSettingsEntry(const TIdentifier& id, const TRule Ctx_.Error() << to_upper(id.Name) << " value should be an identifier"; return false; } + } else if (to_lower(id.Name) == "external_data_channels_count") { + if (reset) { + Ctx_.Error() << to_upper(id.Name) << " reset is not supported"; + return false; + } + if (!StoreInt(*value, settings.ExternalDataChannelsCount, Ctx_)) { + Ctx_.Error() << to_upper(id.Name) << " value should be an integer"; + return false; + } } else { Ctx_.Error() << "Unknown table setting: " << id.Name; return false; |