diff options
author | udovichenko-r <rvu@ydb.tech> | 2023-09-23 08:34:34 +0300 |
---|---|---|
committer | udovichenko-r <rvu@ydb.tech> | 2023-09-23 08:52:36 +0300 |
commit | 107b76c77ebcb567c01ebc192b4a84aa37e8fedb (patch) | |
tree | 41836b88756744cd28e87fcdefbb6c63784d3fe7 | |
parent | 97735004c33ecf5c10738796013df9461952fdd1 (diff) | |
download | ydb-107b76c77ebcb567c01ebc192b4a84aa37e8fedb.tar.gz |
[yt provider] More accurate sys column match in spec preparation
YQL-16580
-rw-r--r-- | ydb/library/yql/providers/yt/gateway/native/yql_yt_exec_ctx.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ydb/library/yql/providers/yt/gateway/native/yql_yt_exec_ctx.cpp b/ydb/library/yql/providers/yt/gateway/native/yql_yt_exec_ctx.cpp index 6c4c17441e4..9f70c552d2c 100644 --- a/ydb/library/yql/providers/yt/gateway/native/yql_yt_exec_ctx.cpp +++ b/ydb/library/yql/providers/yt/gateway/native/yql_yt_exec_ctx.cpp @@ -120,7 +120,7 @@ void TExecContextBase::SetInput(TExprBase input, bool forcePathColumns, const TH auto sysColumnsSetting = NYql::GetSettingAsColumnList(section.Settings().Ref(), EYtSettingType::SysColumns); if (forcePathColumns) { for (auto& colType: section.Ref().GetTypeAnn()->Cast<TListExprType>()->GetItemType()->Cast<TStructExprType>()->GetItems()) { - if (!colType->GetName().StartsWith(YqlSysColumnPrefix) || sysColumnsSetting.empty()) { + if (auto name = colType->GetName(); !name.SkipPrefix(YqlSysColumnPrefix) || Find(sysColumnsSetting, name) == sysColumnsSetting.cend()) { columns.push_back(colType->GetName()); } } |