Copy rough set index Data in a wrong way #8301
Labels
affects-6.1
This bug affects the 6.1.x(LTS) versions.
affects-6.5
This bug affects the 6.5.x(LTS) versions.
affects-7.1
This bug affects the 7.1.x(LTS) versions.
affects-7.5
This bug affects the 7.5.x(LTS) versions.
component/storage
severity/minor
type/bug
The issue is confirmed as a bug.
Bug Report
Please answer these questions before submitting your issue. Thanks!
tiflash/dbms/src/Storages/DeltaMerge/Index/MinMaxIndex.cpp
Lines 307 to 311 in ec00c9a
When using String, we should use reinterpret_cast<const char *>(&chars[prev_offset]) instead of chars[prev_offset], so that it will call constructor
constexpr basic_string( const CharT* s, const Allocator& alloc = Allocator())
rather thanconstexpr basic_string( size_type count, CharT ch, const Allocator& alloc = Allocator() );
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
3. What did you see instead (Required)
4. What is your TiFlash version? (Required)
The text was updated successfully, but these errors were encountered: