File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff 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
3838ui32 TStatsIterator::PredictRecordsCount (const NAbstract::TGranuleMetaView& granule) const {
You can’t perform that action at this time.
0 commit comments