diff options
author | pudge1000-7 <pudge1000-7@yandex-team.com> | 2024-12-10 03:00:26 +0300 |
---|---|---|
committer | pudge1000-7 <pudge1000-7@yandex-team.com> | 2024-12-10 03:19:37 +0300 |
commit | 09e8c873de1528ff579725de6fc52f100d1165f8 (patch) | |
tree | fa2e48514ab4fb031644d84ca06b5f330568cb04 /yql/essentials/core/yql_statistics.h | |
parent | 62a3f361bcd91e6b7ce2943a37b9d4c388df0a0c (diff) | |
download | ydb-09e8c873de1528ff579725de6fc52f100d1165f8.tar.gz |
[YQL] Added sorted orderings info to the statistics
commit_hash:7cd33f02e3ebdd079bc055b19c2008f1d3746061
Diffstat (limited to 'yql/essentials/core/yql_statistics.h')
-rw-r--r-- | yql/essentials/core/yql_statistics.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/yql/essentials/core/yql_statistics.h b/yql/essentials/core/yql_statistics.h index 4a738196c2..152c6ebdc3 100644 --- a/yql/essentials/core/yql_statistics.h +++ b/yql/essentials/core/yql_statistics.h @@ -53,6 +53,15 @@ struct TOptimizerStatistics { TKeyColumns(const TVector<TString>& vec) : Data(vec) {} }; + struct TSortColumns : public TSimpleRefCount<TSortColumns> { + TVector<TString> Columns; + TVector<TString> Aliases; + TSortColumns(const TVector<TString>& cols, const TVector<TString>& aliases) + : Columns(cols) + , Aliases(aliases) + {} + }; + struct TColumnStatMap : public TSimpleRefCount<TColumnStatMap> { THashMap<TString,TColumnStatistics> Data; TColumnStatMap() {} @@ -68,6 +77,7 @@ struct TOptimizerStatistics { TIntrusivePtr<TKeyColumns> KeyColumns; TIntrusivePtr<TColumnStatMap> ColumnStatistics; EStorageType StorageType = EStorageType::NA; + TIntrusivePtr<TSortColumns> SortColumns; std::shared_ptr<IProviderStatistics> Specific; std::shared_ptr<TVector<TString>> Labels = {}; |