<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ydb/yql/essentials/utils/strong_alias.h, branch main</title>
<subtitle>Mirror of YDB github repos</subtitle>
<id>https://code.mastervirt.ru/ydb/atom?h=main</id>
<link rel='self' href='https://code.mastervirt.ru/ydb/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/'/>
<updated>2026-07-07T15:03:49Z</updated>
<entry>
<title>YQL-21387: Introduce TStrongAlias</title>
<updated>2026-07-07T15:03:49Z</updated>
<author>
<name>atarasov5</name>
<email>atarasov5@yandex-team.com</email>
</author>
<published>2026-07-07T14:04:04Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=cd6f4f4f7ce4b7642275a89f825a03d3f98a5765'/>
<id>urn:sha1:cd6f4f4f7ce4b7642275a89f825a03d3f98a5765</id>
<content type='text'>
#### Introduce TStrongAlias type to prevent type confusion ✎

- Introduces `TStrongAlias` template to create distinct types for different conceptual uses of the same underlying data, preventing accidental mixing of semantically different values
- Replaces direct `TString` usage with `TStrongAlias&lt;class TRuntimeSettingsStableHashTag, TString&gt;` for runtime settings hash to enforce type safety
- Updates build configuration to include new `strong_alias` source files
- Fixes a build issue in `mkql_computation_pattern_cache_ut.cpp` by properly accessing the `resize` method on the hash object
- Provides comprehensive implementation of `TStrongAlias` including comparison, hashing, and stream output operators for type-safe usage

&lt;a href="https://nda.ya.ru/t/qa0kX64r7DqvtN"&gt;&lt;font size="2"&gt;Autodescription by Yandex Code Assistant&lt;/font&gt;&lt;/a&gt;
commit_hash:0c856e748ee2198d8545f1a96d24837132cf7d64
</content>
</entry>
</feed>
