Skip to content

Commit 595da34

Browse files
committed
Optimized -> RuntimeFeatures (Utf8)
1 parent 4cf2ffa commit 595da34

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

ydb/core/sys_view/common/schema.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ struct Schema : NIceDb::Schema {
531531
struct Activity: Column<10, NScheme::NTypeIds::Bool> {};
532532
struct TierName: Column<11, NScheme::NTypeIds::Utf8> {};
533533
struct Stats: Column<12, NScheme::NTypeIds::Utf8> {};
534-
struct Optimized: Column<13, NScheme::NTypeIds::Bool> {};
534+
struct RuntimeFeatures: Column<13, NScheme::NTypeIds::Utf8> {};
535535

536536
using TKey = TableKey<PathId, TabletId, PortionId>;
537537
using TColumns = TableColumns<
@@ -547,7 +547,7 @@ struct Schema : NIceDb::Schema {
547547
Activity,
548548
TierName,
549549
Stats,
550-
Optimized
550+
RuntimeFeatures
551551
>;
552552
};
553553

ydb/core/tx/columnshard/engines/portions/portion_info.h

+4
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,10 @@ class TPortionInfo {
185185
return (RuntimeFeatures & (TRuntimeFeatures)feature);
186186
}
187187

188+
TString GetRuntimeFeaturesDebugString() const {
189+
return HasRuntimeFeature(ERuntimeFeature::Optimized) ? "Optimized" : "";
190+
}
191+
188192
void FullValidation() const;
189193

190194
bool HasIndexes(const std::set<ui32>& ids) const {

ydb/core/tx/columnshard/engines/reader/sys_view/portions/portions.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ void TStatsIterator::AppendStats(const std::vector<std::unique_ptr<arrow::ArrayB
3232
auto statInfo = statReport.GetStringRobust();
3333
NArrow::Append<arrow::StringType>(*builders[11], arrow::util::string_view(statInfo.data(), statInfo.size()));
3434

35-
NArrow::Append<arrow::BooleanType>(*builders[12], portion.HasRuntimeFeature(TPortionInfo::ERuntimeFeature::Optimized));
35+
NArrow::Append<arrow::StringType>(*builders[12], portion.GetRuntimeFeaturesDebugString());
3636
}
3737

3838
ui32 TStatsIterator::PredictRecordsCount(const NAbstract::TGranuleMetaView& granule) const {

0 commit comments

Comments
 (0)