Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DB::Exception: Detected overflow when decoding integer of length 4 with column type Int16 #7024

Closed
lilinghai opened this issue Mar 10, 2023 · 8 comments

Comments

@lilinghai
Copy link

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

daily run ddl case

[2023/03/09 11:56:40.861 +08:00] [ERROR] [BaseDaemon.cpp:376] [########################################] [source=BaseDaemon] [thread_id=1278]
[2023/03/09 11:56:40.862 +08:00] [ERROR] [BaseDaemon.cpp:377] ["(from thread 4) Received signal Segmentation fault(11)."] [source=BaseDaemon] [thread_id=1278]
[2023/03/09 11:56:40.862 +08:00] [ERROR] [BaseDaemon.cpp:407] ["Address: 0x10"] [source=BaseDaemon] [thread_id=1278]
[2023/03/09 11:56:40.862 +08:00] [ERROR] [BaseDaemon.cpp:413] ["Access: read."] [source=BaseDaemon] [thread_id=1278]
[2023/03/09 11:56:40.862 +08:00] [ERROR] [BaseDaemon.cpp:422] ["Address not mapped to object."] [source=BaseDaemon] [thread_id=1278]
[2023/03/09 11:56:40.927 +08:00] [ERROR] [BaseDaemon.cpp:569] ["\n       0x73f0631\tfaultSignalHandler(int, siginfo_t*, void*) [tiflash+121570865]\n                \tlibs/libdaemon/src/BaseDaemon.cpp:220\n  0x7fd7d48f6d90\t<unknown symbol> [libc.so.6+347536]\n       0x73c4231\tstd::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__thread_id, void*>*> std::__1::__hash_table<std::__1::__thread_id, std::__1::hash<std::__1::__thread_id>, std::__1::equal_to<std::__1::__thread_id>, std::__1::allocator<std::__1::__thread_id> >::find<std::__1::__thread_id>(std::__1::__thread_id const&) const [tiflash+121389617]\n                \t/usr/local/bin/../include/c++/v1/__hash_table:2425\n       0x7338a52\tDB::DM::DMFileBlockInputStreamBuilder::build(std::__1::shared_ptr<DB::DM::DMFile> const&, std::__1::vector<DB::DM::ColumnDefine, std::__1::allocator<DB::DM::ColumnDefine> > const&, std::__1::vector<DB::DM::RowKeyRange, std::__1::allocator<DB::DM::RowKeyRange> > const&, std::__1::shared_ptr<DB::DM::ScanContext> const&) [tiflash+120818258]\n                \tdbms/src/Storages/DeltaMerge/File/DMFileBlockInputStream.cpp:55\n       0x72ecdf4\tDB::DM::StableValueSpace::Snapshot::getInputStream(DB::DM::DMContext const&, std::__1::vector<DB::DM::ColumnDefine, std::__1::allocator<DB::DM::ColumnDefine> > const&, std::__1::vector<DB::DM::RowKeyRange, std::__1::allocator<DB::DM::RowKeyRange> > const&, std::__1::shared_ptr<DB::DM::RSOperator> const&, unsigned long, unsigned long, bool, bool, bool, std::__1::vector<std::__1::shared_ptr<std::__1::set<unsigned long, std::__1::less<unsigned long>, std::__1::allocator<unsigned long> > >, std::__1::allocator<std::__1::shared_ptr<std::__1::set<unsigned long, std::__1::less<unsigned long>, std::__1::allocator<unsigned long> > > > > const&, bool) [tiflash+120507892]\n                \tdbms/src/Storages/DeltaMerge/StableValueSpace.cpp:368\n       0x727c060\tstd::__1::shared_ptr<DB::DM::SkippableBlockInputStream> DB::DM::Segment::getPlacedStream<false, DB::DM::DTCompactedEntries<55ul, 20ul, 3ul>::Iterator>(DB::DM::DMContext const&, std::__1::vector<DB::DM::ColumnDefine, std::__1::allocator<DB::DM::ColumnDefine> > const&, std::__1::vector<DB::DM::RowKeyRange, std::__1::allocator<DB::DM::RowKeyRange> > const&, std::__1::shared_ptr<DB::DM::RSOperator> const&, std::__1::shared_ptr<DB::DM::StableValueSpace::Snapshot> const&, std::__1::shared_ptr<DB::DM::DeltaValueReader> const&, DB::DM::DTCompactedEntries<55ul, 20ul, 3ul>::Iterator const&, DB::DM::DTCompactedEntries<55ul, 20ul, 3ul>::Iterator const&, unsigned long, unsigned long, bool) [tiflash+120045664]\n                \tdbms/src/Storages/DeltaMerge/Segment.cpp:1986\n       0x7278ce5\tDB::DM::Segment::getInputStreamModeNormal(DB::DM::DMContext const&, std::__1::vector<DB::DM::ColumnDefine, std::__1::allocator<DB::DM::ColumnDefine> > const&, std::__1::shared_ptr<DB::DM::SegmentSnapshot> const&, std::__1::vector<DB::DM::RowKeyRange, std::__1::allocator<DB::DM::RowKeyRange> > const&, std::__1::shared_ptr<DB::DM::RSOperator> const&, unsigned long, unsigned long, bool) [tiflash+120032485]\n                \tdbms/src/Storages/DeltaMerge/Segment.cpp:657\n       0x7297423\tDB::DM::Segment::buildBitmapFilter(DB::DM::DMContext const&, std::__1::shared_ptr<DB::DM::SegmentSnapshot> const&, std::__1::vector<DB::DM::RowKeyRange, std::__1::allocator<DB::DM::RowKeyRange> > const&, std::__1::shared_ptr<DB::DM::RSOperator> const&, unsigned long, unsigned long) [tiflash+120157219]\n                \tdbms/src/Storages/DeltaMerge/Segment.cpp:2270\n       0x727a6b2\tDB::DM::Segment::getBitmapFilterInputStream(DB::DM::DMContext const&, std::__1::vector<DB::DM::ColumnDefine, std::__1::allocator<DB::DM::ColumnDefine> > const&, std::__1::shared_ptr<DB::DM::SegmentSnapshot> const&, std::__1::vector<DB::DM::RowKeyRange, std::__1::allocator<DB::DM::RowKeyRange> > const&, std::__1::shared_ptr<DB::DM::RSOperator> const&, unsigned long, unsigned long) [tiflash+120039090]\n                \tdbms/src/Storages/DeltaMerge/Segment.cpp:2533\n       0x7278527\tDB::DM::Segment::getInputStream(DB::DM::ReadMode const&, DB::DM::DMContext const&, std::__1::vector<DB::DM::ColumnDefine, std::__1::allocator<DB::DM::ColumnDefine> > const&, std::__1::shared_ptr<DB::DM::SegmentSnapshot> const&, std::__1::vector<DB::DM::RowKeyRange, std::__1::allocator<DB::DM::RowKeyRange> > const&, std::__1::shared_ptr<DB::DM::RSOperator> const&, unsigned long, unsigned long) [tiflash+120030503]\n                \tdbms/src/Storages/DeltaMerge/Segment.cpp:588\n       0x72e2176\tDB::DM::SegmentReadTaskPool::buildInputStream(std::__1::shared_ptr<DB::DM::SegmentReadTask>&) [tiflash+120463734]\n                \tdbms/src/Storages/DeltaMerge/SegmentReadTaskPool.cpp:162\n       0x73bbeff\tDB::DM::MergedTask::initOnce() [tiflash+121356031]\n                \tdbms/src/Storages/DeltaMerge/ReadThread/MergedTask.cpp:50\n       0x73c260e\tDB::DM::SegmentReader::run() [tiflash+121382414]\n                \tdbms/src/Storages/DeltaMerge/ReadThread/SegmentReader.cpp:153\n       0x73c3d52\tvoid* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (DB::DM::SegmentReader::*)(), DB::DM::SegmentReader*> >(void*) [tiflash+121388370]\n                \t/usr/local/bin/../include/c++/v1/thread:291\n  0x7fd7d4941802\tstart_thread [libc.so.6+653314]"] [source=BaseDaemon] [thread_id=1278]
[2023/03/09 11:56:40.927 +08:00] [ERROR] [BaseDaemon.cpp:376] [########################################] [source=BaseDaemon] [thread_id=1278]
[2023/03/09 11:56:40.927 +08:00] [ERROR] [BaseDaemon.cpp:377] ["(from thread 3) Received signal Segmentation fault(11)."] [source=BaseDaemon] [thread_id=1278]
[2023/03/09 11:56:40.927 +08:00] [ERROR] [BaseDaemon.cpp:407] ["Address: 0x18"] [source=BaseDaemon] [thread_id=1278]
[2023/03/09 11:56:40.927 +08:00] [ERROR] [BaseDaemon.cpp:413] ["Access: read."] [source=BaseDaemon] [thread_id=1278]
[2023/03/09 11:56:40.927 +08:00] [ERROR] [BaseDaemon.cpp:422] ["Address not mapped to object."] [source=BaseDaemon] [thread_id=1278]
[2023/03/09 11:56:40.927 +08:00] [ERROR] [BaseDaemon.cpp:569] ["\n       0x73f0631\tfaultSignalHandler(int, siginfo_t*, void*) [tiflash+121570865]\n                \tlibs/libdaemon/src/BaseDaemon.cpp:220\n  0x7fd7d48f6d90\t<unknown symbol> [libc.so.6+347536]\n       0x73c4231\tstd::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__thread_id, void*>*> std::__1::__hash_table<std::__1::__thread_id, std::__1::hash<std::__1::__thread_id>, std::__1::equal_to<std::__1::__thread_id>, std::__1::allocator<std::__1::__thread_id> >::find<std::__1::__thread_id>(std::__1::__thread_id const&) const [tiflash+121389617]\n                \t/usr/local/bin/../include/c++/v1/__hash_table:2425\n       0x7338a52\tDB::DM::DMFileBlockInputStreamBuilder::build(std::__1::shared_ptr<DB::DM::DMFile> const&, std::__1::vector<DB::DM::ColumnDefine, std::__1::allocator<DB::DM::ColumnDefine> > const&, std::__1::vector<DB::DM::RowKeyRange, std::__1::allocator<DB::DM::RowKeyRange> > const&, std::__1::shared_ptr<DB::DM::ScanContext> const&) [tiflash+120818258]\n                \tdbms/src/Storages/DeltaMerge/File/DMFileBlockInputStream.cpp:55\n       0x72ecdf4\tDB::DM::StableValueSpace::Snapshot::getInputStream(DB::DM::DMContext const&, std::__1::vector<DB::DM::ColumnDefine, std::__1::allocator<DB::DM::ColumnDefine> > const&, std::__1::vector<DB::DM::RowKeyRange, std::__1::allocator<DB::DM::RowKeyRange> > const&, std::__1::shared_ptr<DB::DM::RSOperator> const&, unsigned long, unsigned long, bool, bool, bool, std::__1::vector<std::__1::shared_ptr<std::__1::set<unsigned long, std::__1::less<unsigned long>, std::__1::allocator<unsigned long> > >, std::__1::allocator<std::__1::shared_ptr<std::__1::set<unsigned long, std::__1::less<unsigned long>, std::__1::allocator<unsigned long> > > > > const&, bool) [tiflash+120507892]\n                \tdbms/src/Storages/DeltaMerge/StableValueSpace.cpp:368\n       0x727c060\tstd::__1::shared_ptr<DB::DM::SkippableBlockInputStream> DB::DM::Segment::getPlacedStream<false, DB::DM::DTCompactedEntries<55ul, 20ul, 3ul>::Iterator>(DB::DM::DMContext const&, std::__1::vector<DB::DM::ColumnDefine, std::__1::allocator<DB::DM::ColumnDefine> > const&, std::__1::vector<DB::DM::RowKeyRange, std::__1::allocator<DB::DM::RowKeyRange> > const&, std::__1::shared_ptr<DB::DM::RSOperator> const&, std::__1::shared_ptr<DB::DM::StableValueSpace::Snapshot> const&, std::__1::shared_ptr<DB::DM::DeltaValueReader> const&, DB::DM::DTCompactedEntries<55ul, 20ul, 3ul>::Iterator const&, DB::DM::DTCompactedEntries<55ul, 20ul, 3ul>::Iterator const&, unsigned long, unsigned long, bool) [tiflash+120045664]\n                \tdbms/src/Storages/DeltaMerge/Segment.cpp:1986\n       0x7278ce5\tDB::DM::Segment::getInputStreamModeNormal(DB::DM::DMContext const&, std::__1::vector<DB::DM::ColumnDefine, std::__1::allocator<DB::DM::ColumnDefine> > const&, std::__1::shared_ptr<DB::DM::SegmentSnapshot> const&, std::__1::vector<DB::DM::RowKeyRange, std::__1::allocator<DB::DM::RowKeyRange> > const&, std::__1::shared_ptr<DB::DM::RSOperator> const&, unsigned long, unsigned long, bool) [tiflash+120032485]\n                \tdbms/src/Storages/DeltaMerge/Segment.cpp:657\n       0x7297423\tDB::DM::Segment::buildBitmapFilter(DB::DM::DMContext const&, std::__1::shared_ptr<DB::DM::SegmentSnapshot> const&, std::__1::vector<DB::DM::RowKeyRange, std::__1::allocator<DB::DM::RowKeyRange> > const&, std::__1::shared_ptr<DB::DM::RSOperator> const&, unsigned long, unsigned long) [tiflash+120157219]\n                \tdbms/src/Storages/DeltaMerge/Segment.cpp:2270\n       0x727a6b2\tDB::DM::Segment::getBitmapFilterInputStream(DB::DM::DMContext const&, std::__1::vector<DB::DM::ColumnDefine, std::__1::allocator<DB::DM::ColumnDefine> > const&, std::__1::shared_ptr<DB::DM::SegmentSnapshot> const&, std::__1::vector<DB::DM::RowKeyRange, std::__1::allocator<DB::DM::RowKeyRange> > const&, std::__1::shared_ptr<DB::DM::RSOperator> const&, unsigned long, unsigned long) [tiflash+120039090]\n                \tdbms/src/Storages/DeltaMerge/Segment.cpp:2533\n       0x7278527\tDB::DM::Segment::getInputStream(DB::DM::ReadMode const&, DB::DM::DMContext const&, std::__1::vector<DB::DM::ColumnDefine, std::__1::allocator<DB::DM::ColumnDefine> > const&, std::__1::shared_ptr<DB::DM::SegmentSnapshot> const&, std::__1::vector<DB::DM::RowKeyRange, std::__1::allocator<DB::DM::RowKeyRange> > const&, std::__1::shared_ptr<DB::DM::RSOperator> const&, unsigned long, unsigned long) [tiflash+120030503]\n                \tdbms/src/Storages/DeltaMerge/Segment.cpp:588\n       0x72e2176\tDB::DM::SegmentReadTaskPool::buildInputStream(std::__1::shared_ptr<DB::DM::SegmentReadTask>&) [tiflash+120463734]\n                \tdbms/src/Storages/DeltaMerge/SegmentReadTaskPool.cpp:162\n       0x73bbeff\tDB::DM::MergedTask::initOnce() [tiflash+121356031]\n                \tdbms/src/Storages/DeltaMerge/ReadThread/MergedTask.cpp:50\n       0x73c260e\tDB::DM::SegmentReader::run() [tiflash+121382414]\n                \tdbms/src/Storages/DeltaMerge/ReadThread/SegmentReader.cpp:153\n       0x73c3d52\tvoid* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (DB::DM::SegmentReader::*)(), DB::DM::SegmentReader*> >(void*) [tiflash+121388370]\n                \t/usr/local/bin/../include/c++/v1/thread:291\n  0x7fd7d4941802\tstart_thread [libc.so.6+653314]"] [source=BaseDaemon] [thread_id=1278]
[2023/03/09 11:56:40.927 +08:00] [ERROR] [BaseDaemon.cpp:376] [########################################] [source=BaseDaemon] [thread_id=1278]
[2023/03/09 11:56:40.927 +08:00] [ERROR] [BaseDaemon.cpp:377] ["(from thread 5) Received signal Segmentation fault(11)."] [source=BaseDaemon] [thread_id=1278]
[2023/03/09 11:56:40.927 +08:00] [ERROR] [BaseDaemon.cpp:407] ["Address: 0x20"] [source=BaseDaemon] [thread_id=1278]
[2023/03/09 11:56:40.927 +08:00] [ERROR] [BaseDaemon.cpp:413] ["Access: read."] [source=BaseDaemon] [thread_id=1278]
[2023/03/09 11:56:40.927 +08:00] [ERROR] [BaseDaemon.cpp:422] ["Address not mapped to object."] [source=BaseDaemon] [thread_id=1278]
[2023/03/09 11:56:40.928 +08:00] [ERROR] [BaseDaemon.cpp:569] ["\n       0x73f0631\tfaultSignalHandler(int, siginfo_t*, void*) [tiflash+121570865]\n                \tlibs/libdaemon/src/BaseDaemon.cpp:220\n  0x7fd7d48f6d90\t<unknown symbol> [libc.so.6+347536]\n       0x73c4231\tstd::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__thread_id, void*>*> std::__1::__hash_table<std::__1::__thread_id, std::__1::hash<std::__1::__thread_id>, std::__1::equal_to<std::__1::__thread_id>, std::__1::allocator<std::__1::__thread_id> >::find<std::__1::__thread_id>(std::__1::__thread_id const&) const [tiflash+121389617]\n                \t/usr/local/bin/../include/c++/v1/__hash_table:2425\n       0x7338a52\tDB::DM::DMFileBlockInputStreamBuilder::build(std::__1::shared_ptr<DB::DM::DMFile> const&, std::__1::vector<DB::DM::ColumnDefine, std::__1::allocator<DB::DM::ColumnDefine> > const&, std::__1::vector<DB::DM::RowKeyRange, std::__1::allocator<DB::DM::RowKeyRange> > const&, std::__1::shared_ptr<DB::DM::ScanContext> const&) [tiflash+120818258]\n                \tdbms/src/Storages/DeltaMerge/File/DMFileBlockInputStream.cpp:55\n       0x72ecdf4\tDB::DM::StableValueSpace::Snapshot::getInputStream(DB::DM::DMContext const&, std::__1::vector<DB::DM::ColumnDefine, std::__1::allocator<DB::DM::ColumnDefine> > const&, std::__1::vector<DB::DM::RowKeyRange, std::__1::allocator<DB::DM::RowKeyRange> > const&, std::__1::shared_ptr<DB::DM::RSOperator> const&, unsigned long, unsigned long, bool, bool, bool, std::__1::vector<std::__1::shared_ptr<std::__1::set<unsigned long, std::__1::less<unsigned long>, std::__1::allocator<unsigned long> > >, std::__1::allocator<std::__1::shared_ptr<std::__1::set<unsigned long, std::__1::less<unsigned long>, std::__1::allocator<unsigned long> > > > > const&, bool) [tiflash+120507892]\n                \tdbms/src/Storages/DeltaMerge/StableValueSpace.cpp:368\n       0x727a849\tDB::DM::Segment::getBitmapFilterInputStream(DB::DM::DMContext const&, std::__1::vector<DB::DM::ColumnDefine, std::__1::allocator<DB::DM::ColumnDefine> > const&, std::__1::shared_ptr<DB::DM::SegmentSnapshot> const&, std::__1::vector<DB::DM::RowKeyRange, std::__1::allocator<DB::DM::RowKeyRange> > const&, std::__1::shared_ptr<DB::DM::RSOperator> const&, unsigned long, unsigned long) [tiflash+120039497]\n                \tdbms/src/Storages/DeltaMerge/Segment.cpp:2541\n       0x7278527\tDB::DM::Segment::getInputStream(DB::DM::ReadMode const&, DB::DM::DMContext const&, std::__1::vector<DB::DM::ColumnDefine, std::__1::allocator<DB::DM::ColumnDefine> > const&, std::__1::shared_ptr<DB::DM::SegmentSnapshot> const&, std::__1::vector<DB::DM::RowKeyRange, std::__1::allocator<DB::DM::RowKeyRange> > const&, std::__1::shared_ptr<DB::DM::RSOperator> const&, unsigned long, unsigned long) [tiflash+120030503]\n                \tdbms/src/Storages/DeltaMerge/Segment.cpp:588\n       0x72e2176\tDB::DM::SegmentReadTaskPool::buildInputStream(std::__1::shared_ptr<DB::DM::SegmentReadTask>&) [tiflash+120463734]\n                \tdbms/src/Storages/DeltaMerge/SegmentReadTaskPool.cpp:162\n       0x73bbeff\tDB::DM::MergedTask::initOnce() [tiflash+121356031]\n                \tdbms/src/Storages/DeltaMerge/ReadThread/MergedTask.cpp:50\n       0x73c260e\tDB::DM::SegmentReader::run() [tiflash+121382414]\n                \tdbms/src/Storages/DeltaMerge/ReadThread/SegmentReader.cpp:153\n       0x73c3d52\tvoid* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (DB::DM::SegmentReader::*)(), DB::DM::SegmentReader*> >(void*) [tiflash+121388370]\n                \t/usr/local/bin/../include/c++/v1/thread:291\n  0x7fd7d4941802\tstart_thread [libc.so.6+653314]"] [source=BaseDaemon] [thread_id=1278]
[2023/03/09 11:56:41.046 +08:00] [ERROR] [BaseDaemon.cpp:376] [########################################] [source=BaseDaemon] [thread_id=1278]
[2023/03/09 11:56:41.046 +08:00] [ERROR] [BaseDaemon.cpp:377] ["(from thread 26) Received signal Segmentation fault(11)."] [source=BaseDaemon] [thread_id=1278]
[2023/03/09 11:56:41.046 +08:00] [ERROR] [BaseDaemon.cpp:407] ["Address: 0x8"] [source=BaseDaemon] [thread_id=1278]
[2023/03/09 11:56:41.046 +08:00] [ERROR] [BaseDaemon.cpp:413] ["Access: read."] [source=BaseDaemon] [thread_id=1278]
[2023/03/09 11:56:41.046 +08:00] [ERROR] [BaseDaemon.cpp:422] ["Address not mapped to object."] [source=BaseDaemon] [thread_id=1278]
[2023/03/09 11:56:41.072 +08:00] [ERROR] [BaseDaemon.cpp:569] ["\n       0x73f0631\tfaultSignalHandler(int, siginfo_t*, void*) [tiflash+121570865]\n                \tlibs/libdaemon/src/BaseDaemon.cpp:220\n  0x7fd7d48f6d90\t<unknown symbol> [libc.so.6+347536]\n       0x73c4231\tstd::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__thread_id, void*>*> std::__1::__hash_table<std::__1::__thread_id, std::__1::hash<std::__1::__thread_id>, std::__1::equal_to<std::__1::__thread_id>, std::__1::allocator<std::__1::__thread_id> >::find<std::__1::__thread_id>(std::__1::__thread_id const&) const [tiflash+121389617]\n                \t/usr/local/bin/../include/c++/v1/__hash_table:2425\n       0x7338a52\tDB::DM::DMFileBlockInputStreamBuilder::build(std::__1::shared_ptr<DB::DM::DMFile> const&, std::__1::vector<DB::DM::ColumnDefine, std::__1::allocator<DB::DM::ColumnDefine> > const&, std::__1::vector<DB::DM::RowKeyRange, std::__1::allocator<DB::DM::RowKeyRange> > const&, std::__1::shared_ptr<DB::DM::ScanContext> const&) [tiflash+120818258]\n                \tdbms/src/Storages/DeltaMerge/File/DMFileBlockInputStream.cpp:55\n       0x72ecdf4\tDB::DM::StableValueSpace::Snapshot::getInputStream(DB::DM::DMContext const&, std::__1::vector<DB::DM::ColumnDefine, std::__1::allocator<DB::DM::ColumnDefine> > const&, std::__1::vector<DB::DM::RowKeyRange, std::__1::allocator<DB::DM::RowKeyRange> > const&, std::__1::shared_ptr<DB::DM::RSOperator> const&, unsigned long, unsigned long, bool, bool, bool, std::__1::vector<std::__1::shared_ptr<std::__1::set<unsigned long, std::__1::less<unsigned long>, std::__1::allocator<unsigned long> > >, std::__1::allocator<std::__1::shared_ptr<std::__1::set<unsigned long, std::__1::less<unsigned long>, std::__1::allocator<unsigned long> > > > > const&, bool) [tiflash+120507892]\n                \tdbms/src/Storages/DeltaMerge/StableValueSpace.cpp:368\n       0x72cc118\tstd::__1::shared_ptr<DB::DM::SkippableBlockInputStream> DB::DM::Segment::getPlacedStream<true, DB::DM::DTCompactedEntries<55ul, 20ul, 3ul>::Iterator>(DB::DM::DMContext const&, std::__1::vector<DB::DM::ColumnDefine, std::__1::allocator<DB::DM::ColumnDefine> > const&, std::__1::vector<DB::DM::RowKeyRange, std::__1::allocator<DB::DM::RowKeyRange> > const&, std::__1::shared_ptr<DB::DM::RSOperator> const&, std::__1::shared_ptr<DB::DM::StableValueSpace::Snapshot> const&, std::__1::shared_ptr<DB::DM::DeltaValueReader> const&, DB::DM::DTCompactedEntries<55ul, 20ul, 3ul>::Iterator const&, DB::DM::DTCompactedEntries<55ul, 20ul, 3ul>::Iterator const&, unsigned long, unsigned long, bool) [tiflash+120373528]\n                \tdbms/src/Storages/DeltaMerge/Segment.cpp:1986\n       0x7292c5a\tDB::DM::Segment::ensurePlace(DB::DM::DMContext const&, std::__1::shared_ptr<DB::DM::StableValueSpace::Snapshot> const&, std::__1::shared_ptr<DB::DM::DeltaValueReader> const&, std::__1::vector<DB::DM::RowKeyRange, std::__1::allocator<DB::DM::RowKeyRange> > const&, unsigned long) const [tiflash+120138842]\n                \tdbms/src/Storages/DeltaMerge/Segment.cpp:2060\n       0x727b4ba\tDB::DM::Segment::getReadInfo(DB::DM::DMContext const&, std::__1::vector<DB::DM::ColumnDefine, std::__1::allocator<DB::DM::ColumnDefine> > const&, std::__1::shared_ptr<DB::DM::SegmentSnapshot> const&, std::__1::vector<DB::DM::RowKeyRange, std::__1::allocator<DB::DM::RowKeyRange> > const&, unsigned long) const [tiflash+120042682]\n                \tdbms/src/Storages/DeltaMerge/Segment.cpp:1927\n       0x727e05a\tDB::DM::Segment::prepareMergeDelta(DB::DM::DMContext&, std::__1::shared_ptr<std::__1::vector<DB::DM::ColumnDefine, std::__1::allocator<DB::DM::ColumnDefine> > > const&, std::__1::shared_ptr<DB::DM::SegmentSnapshot> const&, DB::DM::WriteBatches&) const [tiflash+120053850]\n                \tdbms/src/Storages/DeltaMerge/Segment.cpp:923\n       0x7252e8b\tDB::DM::DeltaMergeStore::segmentMergeDelta(DB::DM::DMContext&, std::__1::shared_ptr<DB::DM::Segment> const&, DB::DM::DeltaMergeStore::MergeDeltaReason, std::__1::shared_ptr<DB::DM::SegmentSnapshot>) [tiflash+119877259]\n                \tdbms/src/Storages/DeltaMerge/DeltaMergeStore_InternalSegment.cpp:431\n       0x7241113\tDB::DM::DeltaMergeStore::gcTrySegmentMergeDelta(std::__1::shared_ptr<DB::DM::DMContext> const&, std::__1::shared_ptr<DB::DM::Segment> const&, std::__1::shared_ptr<DB::DM::Segment> const&, std::__1::shared_ptr<DB::DM::Segment> const&, unsigned long) [tiflash+119804179]\n                \tdbms/src/Storages/DeltaMerge/DeltaMergeStore_InternalBg.cpp:709\n       0x7245c66\tDB::DM::DeltaMergeStore::onSyncGc(long, DB::DM::GCOptions const&) [tiflash+119823462]\n                \tdbms/src/Storages/DeltaMerge/DeltaMergeStore_InternalBg.cpp:805\n       0x7d111f7\tDB::GCManager::work() [tiflash+131142135]\n                \tdbms/src/Storages/GCManager.cpp:81\n       0x7b9f6db\tvoid* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, DB::BackgroundProcessingPool::BackgroundProcessingPool(int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)::$_1> >(void*) [tiflash+129627867]\n                \t/usr/local/bin/../include/c++/v1/thread:291\n  0x7fd7d4941802\tstart_thread [libc.so.6+653314]"] [source=BaseDaemon] [thread_id=1278]
[2023/03/09 11:56:41.225 +08:00] [ERROR] [BaseDaemon.cpp:376] [########################################] [source=BaseDaemon] [thread_id=1278]
[2023/03/09 11:56:41.225 +08:00] [ERROR] [BaseDaemon.cpp:377] ["(from thread 98) Received signal Segmentation fault(11)."] [source=BaseDaemon] [thread_id=1278]
[2023/03/09 11:56:41.225 +08:00] [ERROR] [BaseDaemon.cpp:407] ["Address: 0x8"] [source=BaseDaemon] [thread_id=1278]
[2023/03/09 11:56:41.225 +08:00] [ERROR] [BaseDaemon.cpp:413] ["Access: read."] [source=BaseDaemon] [thread_id=1278]
[2023/03/09 11:56:41.225 +08:00] [ERROR] [BaseDaemon.cpp:422] ["Address not mapped to object."] [source=BaseDaemon] [thread_id=1278]
[2023/03/09 11:56:41.232 +08:00] [ERROR] [BaseDaemon.cpp:569] ["\n       0x73f0631\tfaultSignalHandler(int, siginfo_t*, void*) [tiflash+121570865]\n                \tlibs/libdaemon/src/BaseDaemon.cpp:220\n  0x7fd7d48f6d90\t<unknown symbol> [libc.so.6+347536]\n       0x7e85ef2\tDB::isUnsupportedEncodeType(std::__1::vector<tipb::FieldType, std::__1::allocator<tipb::FieldType> > const&, tipb::EncodeType) [tiflash+132669170]\n                \tdbms/src/Flash/Coprocessor/DAGUtils.cpp:1174\n       0x7e38885\tDB::DAGContext::initOutputInfo() [tiflash+132352133]\n                \tdbms/src/Flash/Coprocessor/DAGContext.cpp:169\n       0x7e381c8\tDB::DAGContext::DAGContext(tipb::DAGRequest const&, DB::TablesRegionsInfo&&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool, std::__1::shared_ptr<DB::Logger>) [tiflash+132350408]\n                \tdbms/src/Flash/Coprocessor/DAGContext.cpp:63\n       0x7df057f\tDB::CoprocessorHandler::execute() [tiflash+132056447]\n                \tdbms/src/Flash/CoprocessorHandler.cpp:109\n       0x7e11143\tstd::__1::__function::__func<DB::FlashService::Coprocessor(grpc::ServerContext*, coprocessor::Request const*, coprocessor::Response*)::$_28, std::__1::allocator<DB::FlashService::Coprocessor(grpc::ServerContext*, coprocessor::Request const*, coprocessor::Response*)::$_28>, grpc::Status ()>::operator()() [tiflash+132190531]\n                \t/usr/local/bin/../include/c++/v1/__functional/function.h:345\n       0x7e10988\tstd::__1::__packaged_task_func<std::__1::function<grpc::Status ()>, std::__1::allocator<std::__1::function<grpc::Status ()> >, grpc::Status ()>::operator()() [tiflash+132188552]\n                \t/usr/local/bin/../include/c++/v1/future:1687\n       0x7e10b45\tstd::__1::packaged_task<grpc::Status ()>::operator()() [tiflash+132188997]\n                \t/usr/local/bin/../include/c++/v1/future:1960\n       0x83739d4\tvoid* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, ThreadPool::ThreadPool(unsigned long, std::__1::function<void ()>)::$_0> >(void*) [tiflash+137837012]\n                \t/usr/local/bin/../include/c++/v1/thread:291\n  0x7fd7d4941802\tstart_thread [libc.so.6+653314]"] [source=BaseDaemon] [thread_id=1278]
[2023/03/09 11:56:41.346 +08:00] [ERROR] [BaseDaemon.cpp:376] [########################################] [source=BaseDaemon] [thread_id=1278]
[2023/03/09 11:56:41.346 +08:00] [ERROR] [BaseDaemon.cpp:377] ["(from thread 243) Received signal Segmentation fault(11)."] [source=BaseDaemon] [thread_id=1278]
[2023/03/09 11:56:41.346 +08:00] [ERROR] [BaseDaemon.cpp:407] ["Address: 0x8"] [source=BaseDaemon] [thread_id=1278]
[2023/03/09 11:56:41.346 +08:00] [ERROR] [BaseDaemon.cpp:413] ["Access: read."] [source=BaseDaemon] [thread_id=1278]
[2023/03/09 11:56:41.346 +08:00] [ERROR] [BaseDaemon.cpp:422] ["Address not mapped to object."] [source=BaseDaemon] [thread_id=1278]
[2023/03/09 11:56:41.377 +08:00] [ERROR] [BaseDaemon.cpp:569] ["\n       0x73f0631\tfaultSignalHandler(int, siginfo_t*, void*) [tiflash+121570865]\n                \tlibs/libdaemon/src/BaseDaemon.cpp:220\n  0x7fd7d48f6d90\t<unknown symbol> [libc.so.6+347536]\n       0x7e85ef2\tDB::isUnsupportedEncodeType(std::__1::vector<tipb::FieldType, std::__1::allocator<tipb::FieldType> > const&, tipb::EncodeType) [tiflash+132669170]\n                \tdbms/src/Flash/Coprocessor/DAGUtils.cpp:1174\n       0x7e38885\tDB::DAGContext::initOutputInfo() [tiflash+132352133]\n                \tdbms/src/Flash/Coprocessor/DAGContext.cpp:169\n       0x7e394f2\tDB::DAGContext::DAGContext(tipb::DAGRequest const&, mpp::TaskMeta const&, bool) [tiflash+132355314]\n                \tdbms/src/Flash/Coprocessor/DAGContext.cpp:87\n       0x7f55fcd\tDB::MPPTask::prepare(mpp::DispatchTaskRequest const&) [tiflash+133521357]\n                \tdbms/src/Flash/Mpp/MPPTask.cpp:314\n       0x7f4cf7e\tDB::MPPHandler::execute(std::__1::shared_ptr<DB::Context> const&, mpp::DispatchTaskResponse*) [tiflash+133484414]\n                \tdbms/src/Flash/Mpp/MPPHandler.cpp:86\n       0x7e07c07\tDB::FlashService::DispatchMPPTask(grpc::ServerContext*, mpp::DispatchTaskRequest const*, mpp::DispatchTaskResponse*) [tiflash+132152327]\n                \tdbms/src/Flash/FlashService.cpp:277\n       0x8cd9809\tgrpc::internal::RpcMethodHandler<tikvpb::Tikv::Service, mpp::DispatchTaskRequest, mpp::DispatchTaskResponse, google::protobuf::MessageLite, google::protobuf::MessageLite>::RunHandler(grpc::internal::MethodHandler::HandlerParameter const&) [tiflash+147691529]\n                \tcontrib/grpc/include/grpcpp/impl/codegen/method_handler.h:113\n       0x86c2f90\tgrpc::Server::SyncRequest::ContinueRunAfterInterception() [tiflash+141307792]\n                \tcontrib/grpc/src/cpp/server/server_cc.cc:433\n       0x86c2dc1\tgrpc::Server::SyncRequest::Run(std::__1::shared_ptr<grpc::Server::GlobalCallbacks> const&, bool) [tiflash+141307329]\n                \tcontrib/grpc/src/cpp/server/server_cc.cc:421\n       0x86d4fb5\tgrpc::ThreadManager::WorkerThread::WorkerThread(grpc::ThreadManager*)::$_0::__invoke(void*) [tiflash+141381557]\n                \tcontrib/grpc/src/cpp/thread_manager/thread_manager.cc:36\n       0x8a6f22a\tgrpc_core::(anonymous namespace)::ThreadInternalsPosix::ThreadInternalsPosix(char const*, void (*)(void*), void*, bool*, grpc_core::Thread::Options const&)::'lambda'(void*)::__invoke(void*) [tiflash+145158698]\n                \tcontrib/grpc/src/core/lib/gprpp/thd_posix.cc:110\n  0x7fd7d4941802\tstart_thread [libc.so.6+653314]"] [source=BaseDaemon] [thread_id=1278]
[2023/03/09 11:56:41.501 +08:00] [ERROR] [BaseDaemon.cpp:376] [########################################] [source=BaseDaemon] [thread_id=1278]
[2023/03/09 11:56:41.501 +08:00] [ERROR] [BaseDaemon.cpp:377] ["(from thread 16) Received signal Segmentation fault(11)."] [source=BaseDaemon] [thread_id=1278]
[2023/03/09 11:56:41.501 +08:00] [ERROR] [BaseDaemon.cpp:405] ["Address: NULL pointer."] [source=BaseDaemon] [thread_id=1278]
[2023/03/09 11:56:41.501 +08:00] [ERROR] [BaseDaemon.cpp:413] ["Access: read."] [source=BaseDaemon] [thread_id=1278]
[2023/03/09 11:56:41.501 +08:00] [ERROR] [BaseDaemon.cpp:422] ["Address not mapped to object."] [source=BaseDaemon] [thread_id=1278]
[2023/03/09 11:56:41.523 +08:00] [ERROR] [BaseDaemon.cpp:569] ["\n       0x73f0631\tfaultSignalHandler(int, siginfo_t*, void*) [tiflash+121570865]\n                \tlibs/libdaemon/src/BaseDaemon.cpp:220\n  0x7fd7d48f6d90\t<unknown symbol> [libc.so.6+347536]\n       0x7ba3475\tDB::toString(DB::ColumnDefaultKind) [tiflash+129643637]\n                \tdbms/src/Storages/ColumnDefault.cpp:44\n       0x771d287\tDB::InterpreterCreateQuery::formatColumns(DB::ColumnsDescription const&) [tiflash+124899975]\n                \tdbms/src/Interpreters/InterpreterCreateQuery.cpp:345\n       0x7551462\tDB::DatabaseTiFlash::alterTable(DB::Context const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, DB::ColumnsDescription const&, std::__1::function<void (DB::IAST&)> const&) [tiflash+123016290]\n                \tdbms/src/Databases/DatabaseTiFlash.cpp:406\n       0x7be03d4\tDB::StorageDeltaMerge::alterImpl(DB::AlterCommands const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::optional<std::__1::reference_wrapper<TiDB::TableInfo const> >, DB::Context const&) [tiflash+129893332]\n                \tdbms/src/Storages/StorageDeltaMerge.cpp:1286\n       0x7d7bb7a\tDB::SchemaBuilder<DB::SchemaGetter, DB::SchemaNameMapper>::applyAlterPhysicalTable(std::__1::shared_ptr<TiDB::DBInfo> const&, std::__1::shared_ptr<TiDB::TableInfo> const&, std::__1::shared_ptr<DB::IManageableStorage> const&) [tiflash+131578746]\n                \tdbms/src/TiDB/Schema/SchemaBuilder.cpp:385\n       0x7d761c3\tDB::SchemaBuilder<DB::SchemaGetter, DB::SchemaNameMapper>::applyAlterLogicalTable(std::__1::shared_ptr<TiDB::DBInfo> const&, std::__1::shared_ptr<TiDB::TableInfo> const&, std::__1::shared_ptr<DB::IManageableStorage> const&) [tiflash+131555779]\n                \tdbms/src/TiDB/Schema/SchemaBuilder.cpp:420\n       0x7d6e643\tDB::SchemaBuilder<DB::SchemaGetter, DB::SchemaNameMapper>::applyDiff(DB::SchemaDiff const&) [tiflash+131524163]\n                \tdbms/src/TiDB/Schema/SchemaBuilder.cpp:526\n       0x7d026c7\tDB::TiDBSchemaSyncer<false, false>::syncSchemas(DB::Context&) [tiflash+131081927]\n                \tdbms/src/TiDB/Schema/TiDBSchemaSyncer.h:129\n       0x7c9270c\tDB::writeRegionDataToStorage(DB::Context&, DB::RegionPtrWithBlock const&, std::__1::vector<std::__1::tuple<DB::RawTiDBPK, unsigned char, unsigned long, std::__1::shared_ptr<DB::StringObject<false> const> >, std::__1::allocator<std::__1::tuple<DB::RawTiDBPK, unsigned char, unsigned long, std::__1::shared_ptr<DB::StringObject<false> const> > > >&, std::__1::shared_ptr<DB::Logger> const&) [tiflash+130623244]\n                \tdbms/src/Storages/Transaction/PartitionStreams.cpp:189\n       0x7c9233c\tDB::RegionTable::writeBlockByRegion(DB::Context&, DB::RegionPtrWithBlock const&, std::__1::vector<std::__1::tuple<DB::RawTiDBPK, unsigned char, unsigned long, std::__1::shared_ptr<DB::StringObject<false> const> >, std::__1::allocator<std::__1::tuple<DB::RawTiDBPK, unsigned char, unsigned long, std::__1::shared_ptr<DB::StringObject<false> const> > > >&, std::__1::shared_ptr<DB::Logger> const&, bool) [tiflash+130622268]\n                \tdbms/src/Storages/Transaction/PartitionStreams.cpp:358\n       0x7cbcf8d\tDB::Region::handleWriteRaftCmd(DB::WriteCmdsView const&, unsigned long, unsigned long, DB::TMTContext&) [tiflash+130797453]\n                \tdbms/src/Storages/Transaction/Region.cpp:723\n       0x7c7b65e\tDB::KVStore::handleWriteRaftCmd(DB::WriteCmdsView const&, unsigned long, unsigned long, unsigned long, DB::TMTContext&) [tiflash+130528862]\n                \tdbms/src/Storages/Transaction/KVStore.cpp:292\n       0x7c9a1e5\tHandleWriteRaftCmd [tiflash+130654693]\n                \tdbms/src/Storages/Transaction/ProxyFFI.cpp:97\n  0x7fd7d633a2c4\t_$LT$engine_store_ffi..observer..TiFlashObserver$LT$T$C$ER$GT$$u20$as$u20$raftstore..coprocessor..QueryObserver$GT$::post_exec_query::h1d4100f37013ea7b [libtiflash_proxy.so+23888580]\n  0x7fd7d71bbb8d\traftstore::store::fsm::apply::ApplyDelegate$LT$EK$GT$::apply_raft_cmd::hcc49da5cb5fcd2aa [libtiflash_proxy.so+39099277]\n  0x7fd7d71d4da8\traftstore::store::fsm::apply::ApplyDelegate$LT$EK$GT$::process_raft_cmd::h98e0bf3ec2af78bc [libtiflash_proxy.so+39202216]\n  0x7fd7d71da62b\traftstore::store::fsm::apply::ApplyDelegate$LT$EK$GT$::handle_raft_committed_entries::hf0acc104021808ba [libtiflash_proxy.so+39224875]\n  0x7fd7d71ac33c\traftstore::store::fsm::apply::ApplyFsm$LT$EK$GT$::handle_apply::h3ad9d04f5f1fb225 [libtiflash_proxy.so+39035708]\n  0x7fd7d71b08b2\traftstore::store::fsm::apply::ApplyFsm$LT$EK$GT$::handle_tasks::h6725ee0351e1c1c0 [libtiflash_proxy.so+39053490]\n  0x7fd7d642762e\t_$LT$raftstore..store..fsm..apply..ApplyPoller$LT$EK$GT$$u20$as$u20$batch_system..batch..PollHandler$LT$raftstore..store..fsm..apply..ApplyFsm$LT$EK$GT$$C$raftstore..store..fsm..apply..ControlFsm$GT$$GT$::handle_normal::h93d71ef7f1d6cafd [libtiflash_proxy.so+24860206]\n  0x7fd7d63a3c83\tbatch_system::batch::Poller$LT$N$C$C$C$Handler$GT$::poll::he7782d323aabd269 [libtiflash_proxy.so+24321155]\n  0x7fd7d64952d2\tstd::sys_common::backtrace::__rust_begin_short_backtrace::h75ccd30bdcf02aee [libtiflash_proxy.so+25309906]\n  0x7fd7d64e0a1e\tcore::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::hcdce1a51baa82a18 [libtiflash_proxy.so+25618974]\n  0x7fd7d797d715\tstd::sys::unix::thread::Thread::new::thread_start::hd2791a9cabec1fda [libtiflash_proxy.so+47232789]\n                \t/rustc/96ddd32c4bfb1d78f0cd03eb068b1710a8cebeef/library/std/src/sys/unix/thread.rs:108\n  0x7fd7d4941802\tstart_thread [libc.so.6+653314]"] [source=BaseDaemon] [thread_id=1278]
[2023/03/09 11:56:41.523 +08:00] [ERROR] [BaseDaemon.cpp:376] [########################################] [source=BaseDaemon] [thread_id=1278]
[2023/03/09 11:56:41.523 +08:00] [ERROR] [BaseDaemon.cpp:377] ["(from thread 188) Received signal Segmentation fault(11)."] [source=BaseDaemon] [thread_id=1278]
[2023/03/09 11:56:41.523 +08:00] [ERROR] [BaseDaemon.cpp:407] ["Address: 0x8"] [source=BaseDaemon] [thread_id=1278]
[2023/03/09 11:56:41.523 +08:00] [ERROR] [BaseDaemon.cpp:413] ["Access: read."] [source=BaseDaemon] [thread_id=1278]
[2023/03/09 11:56:41.523 +08:00] [ERROR] [BaseDaemon.cpp:422] ["Address not mapped to object."] [source=BaseDaemon] [thread_id=1278]
[2023/03/09 11:56:41.523 +08:00] [ERROR] [BaseDaemon.cpp:569] ["\n       0x73f0631\tfaultSignalHandler(int, siginfo_t*, void*) [tiflash+121570865]\n                \tlibs/libdaemon/src/BaseDaemon.cpp:220\n  0x7fd7d48f6d90\t<unknown symbol> [libc.so.6+347536]\n       0x7e85ef2\tDB::isUnsupportedEncodeType(std::__1::vector<tipb::FieldType, std::__1::allocator<tipb::FieldType> > const&, tipb::EncodeType) [tiflash+132669170]\n                \tdbms/src/Flash/Coprocessor/DAGUtils.cpp:1174\n       0x7e38885\tDB::DAGContext::initOutputInfo() [tiflash+132352133]\n                \tdbms/src/Flash/Coprocessor/DAGContext.cpp:169\n       0x7e381c8\tDB::DAGContext::DAGContext(tipb::DAGRequest const&, DB::TablesRegionsInfo&&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool, std::__1::shared_ptr<DB::Logger>) [tiflash+132350408]\n                \tdbms/src/Flash/Coprocessor/DAGContext.cpp:63\n       0x7df057f\tDB::CoprocessorHandler::execute() [tiflash+132056447]\n                \tdbms/src/Flash/CoprocessorHandler.cpp:109\n       0x7e11143\tstd::__1::__function::__func<DB::FlashService::Coprocessor(grpc::ServerContext*, coprocessor::Request const*, coprocessor::Response*)::$_28, std::__1::allocator<DB::FlashService::Coprocessor(grpc::ServerContext*, coprocessor::Request const*, coprocessor::Response*)::$_28>, grpc::Status ()>::operator()() [tiflash+132190531]\n                \t/usr/local/bin/../include/c++/v1/__functional/function.h:345\n       0x7e10988\tstd::__1::__packaged_task_func<std::__1::function<grpc::Status ()>, std::__1::allocator<std::__1::function<grpc::Status ()> >, grpc::Status ()>::operator()() [tiflash+132188552]\n                \t/usr/local/bin/../include/c++/v1/future:1687\n       0x7e10b45\tstd::__1::packaged_task<grpc::Status ()>::operator()() [tiflash+132188997]\n                \t/usr/local/bin/../include/c++/v1/future:1960\n       0x83739d4\tvoid* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, ThreadPool::ThreadPool(unsigned long, std::__1::function<void ()>)::$_0> >(void*) [tiflash+137837012]\n                \t/usr/local/bin/../include/c++/v1/thread:291\n  0x7fd7d4941802\tstart_thread [libc.so.6+653314]"] [source=BaseDaemon] [thread_id=1278]
[2023/03/09 11:56:41.888 +08:00] [ERROR] [BaseDaemon.cpp:376] [########################################] [source=BaseDaemon] [thread_id=1278]
[2023/03/09 11:56:41.888 +08:00] [ERROR] [BaseDaemon.cpp:377] ["(from thread 97) Received signal Segmentation fault(11)."] [source=BaseDaemon] [thread_id=1278]
[2023/03/09 11:56:41.888 +08:00] [ERROR] [BaseDaemon.cpp:407] ["Address: 0x8"] [source=BaseDaemon] [thread_id=1278]
[2023/03/09 11:56:41.888 +08:00] [ERROR] [BaseDaemon.cpp:413] ["Access: read."] [source=BaseDaemon] [thread_id=1278]
[2023/03/09 11:56:41.888 +08:00] [ERROR] [BaseDaemon.cpp:422] ["Address not mapped to object."] [source=BaseDaemon] [thread_id=1278]
[2023/03/09 11:56:41.889 +08:00] [ERROR] [BaseDaemon.cpp:569] ["\n       0x73f0631\tfaultSignalHandler(int, siginfo_t*, void*) [tiflash+121570865]\n                \tlibs/libdaemon/src/BaseDaemon.cpp:220\n  0x7fd7d48f6d90\t<unknown symbol> [libc.so.6+347536]\n       0x7e85ef2\tDB::isUnsupportedEncodeType(std::__1::vector<tipb::FieldType, std::__1::allocator<tipb::FieldType> > const&, tipb::EncodeType) [tiflash+132669170]\n                \tdbms/src/Flash/Coprocessor/DAGUtils.cpp:1174\n       0x7e38885\tDB::DAGContext::initOutputInfo() [tiflash+132352133]\n                \tdbms/src/Flash/Coprocessor/DAGContext.cpp:169\n       0x7e394f2\tDB::DAGContext::DAGContext(tipb::DAGRequest const&, mpp::TaskMeta const&, bool) [tiflash+132355314]\n                \tdbms/src/Flash/Coprocessor/DAGContext.cpp:87\n       0x7f55fcd\tDB::MPPTask::prepare(mpp::DispatchTaskRequest const&) [tiflash+133521357]\n                \tdbms/src/Flash/Mpp/MPPTask.cpp:314\n       0x7f4cf7e\tDB::MPPHandler::execute(std::__1::shared_ptr<DB::Context> const&, mpp::DispatchTaskResponse*) [tiflash+133484414]\n                \tdbms/src/Flash/Mpp/MPPHandler.cpp:86\n       0x7e07c07\tDB::FlashService::DispatchMPPTask(grpc::ServerContext*, mpp::DispatchTaskRequest const*, mpp::DispatchTaskResponse*) [tiflash+132152327]\n                \tdbms/src/Flash/FlashService.cpp:277\n       0x8cd9809\tgrpc::internal::RpcMethodHandler<tikvpb::Tikv::Service, mpp::DispatchTaskRequest, mpp::DispatchTaskResponse, google::protobuf::MessageLite, google::protobuf::MessageLite>::RunHandler(grpc::internal::MethodHandler::HandlerParameter const&) [tiflash+147691529]\n                \tcontrib/grpc/include/grpcpp/impl/codegen/method_handler.h:113\n       0x86c2f90\tgrpc::Server::SyncRequest::ContinueRunAfterInterception() [tiflash+141307792]\n                \tcontrib/grpc/src/cpp/server/server_cc.cc:433\n       0x86c2dc1\tgrpc::Server::SyncRequest::Run(std::__1::shared_ptr<grpc::Server::GlobalCallbacks> const&, bool) [tiflash+141307329]\n                \tcontrib/grpc/src/cpp/server/server_cc.cc:421\n       0x86d4fb5\tgrpc::ThreadManager::WorkerThread::WorkerThread(grpc::ThreadManager*)::$_0::__invoke(void*) [tiflash+141381557]\n                \tcontrib/grpc/src/cpp/thread_manager/thread_manager.cc:36\n       0x8a6f22a\tgrpc_core::(anonymous namespace)::ThreadInternalsPosix::ThreadInternalsPosix(char const*, void (*)(void*), void*, bool*, grpc_core::Thread::Options const&)::'lambda'(void*)::__invoke(void*) [tiflash+145158698]\n                \tcontrib/grpc/src/core/lib/gprpp/thd_posix.cc:110\n  0x7fd7d4941802\tstart_thread [libc.so.6+653314]"] [source=BaseDaemon] [thread_id=1278]

2. What did you expect to see? (Required)

3. What did you see instead (Required)

4. What is your TiFlash version? (Required)

master

@hongyunyan
Copy link
Contributor

The fail case is from "should serve stably when ddl #4#", and the main Error info now is about

[ERROR] [Exception.cpp:90] ["Code: 49, e.displayText() = DB::Exception: Detected overflow when decoding integer of length 8 with column type Int32, e.what() = DB::Exception, Stack trace:\n\n\n       0x1abdd3e\tDB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) [tiflash+28040510]\n                \tdbms/src/Common/Exception.h:46\n       0x1da18f9\tDB::ColumnVector<int>::decodeTiDBRowV2Datum(unsigned long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned long, bool) [tiflash+31070457]\n       0x7b29ee7\tDB::ColumnNullable::decodeTiDBRowV2Datum(unsigned long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned long, bool) [tiflash+129146599]\n                \tdbms/src/Columns/ColumnNullable.cpp:172\n       0x7cf53ea\tbool DB::appendRowV2ToBlockImpl<false>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::__map_const_iterator<std::__1::__tree_const_iterator<std::__1::__value_type<long, unsigned long>, std::__1::__tree_node<std::__1::__value_type<long, unsigned long>, void*>*, long> >, std::__1::__map_const_iterator<std::__1::__tree_const_iterator<std::__1::__value_type<long, unsigned long>, std::__1::__tree_node<std::__1::__value_type<long, unsigned long>, void*>*, long> >, DB::Block&, unsigned long, std::__1::vector<TiDB::ColumnInfo, std::__1::allocator<TiDB::ColumnInfo> > const&, long, bool, bool) [tiflash+131027946]\n                \tdbms/src/Storages/Transaction/RowCodec.cpp:499\n       0x7cf3dc4\tDB::appendRowToBlock(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::__map_const_iterator<std::__1::__tree_const_iterator<std::__1::__value_type<long, unsigned long>, std::__1::__tree_node<std::__1::__value_type<long, unsigned long>, void*>*, long> >, std::__1::__map_const_iterator<std::__1::__tree_const_iterator<std::__1::__value_type<long, unsigned long>, std::__1::__tree_node<std::__1::__value_type<long, unsigned long>, void*>*, long> >, DB::Block&, unsigned long, std::__1::shared_ptr<DB::DecodingStorageSchemaSnapshot const> const&, bool) [tiflash+131022276]\n                \tdbms/src/Storages/Transaction/RowCodec.cpp:349\n       0x7cc27a6\tbool DB::RegionBlockReader::readImpl<(DB::TMTPKType)2>(DB::Block&, std::__1::vector<std::__1::tuple<DB::RawTiDBPK, unsigned char, unsigned long, std::__1::shared_ptr<DB::StringObject<false> const> >, std::__1::allocator<std::__1::tuple<DB::RawTiDBPK, unsigned char, unsigned long, std::__1::shared_ptr<DB::StringObject<false> const> > > > const&, bool) [tiflash+130820006]\n                \tdbms/src/Storages/Transaction/RegionBlockReader.cpp:146\n       0x7c95dfa\tDB::writeRegionDataToStorage(DB::Context&, DB::RegionPtrWithBlock const&, std::__1::vector<std::__1::tuple<DB::RawTiDBPK, unsigned char, unsigned long, std::__1::shared_ptr<DB::StringObject<false> const> >, std::__1::allocator<std::__1::tuple<DB::RawTiDBPK, unsigned char, unsigned long, std::__1::shared_ptr<DB::StringObject<false> const> > > >&, std::__1::shared_ptr<DB::Logger> const&)::$_0::operator()(bool) const [tiflash+130637306]\n                \tdbms/src/Storages/Transaction/PartitionStreams.cpp:129\n       0x7c92749\tDB::writeRegionDataToStorage(DB::Context&, DB::RegionPtrWithBlock const&, std::__1::vector<std::__1::tuple<DB::RawTiDBPK, unsigned char, unsigned long, std::__1::shared_ptr<DB::StringObject<false> const> >, std::__1::allocator<std::__1::tuple<DB::RawTiDBPK, unsigned char, unsigned long, std::__1::shared_ptr<DB::StringObject<false> const> > > >&, std::__1::shared_ptr<DB::Logger> const&) [tiflash+130623305]\n                \tdbms/src/Storages/Transaction/PartitionStreams.cpp:191\n       0x7c9233c\tDB::RegionTable::writeBlockByRegion(DB::Context&, DB::RegionPtrWithBlock const&, std::__1::vector<std::__1::tuple<DB::RawTiDBPK, unsigned char, unsigned long, std::__1::shared_ptr<DB::StringObject<false> const> >, std::__1::allocator<std::__1::tuple<DB::RawTiDBPK, unsigned char, unsigned long, std::__1::shared_ptr<DB::StringObject<false> const> > > >&, std::__1::shared_ptr<DB::Logger> const&, bool) [tiflash+130622268]\n                \tdbms/src/Storages/Transaction/PartitionStreams.cpp:358\n       0x7cbcf8d\tDB::Region::handleWriteRaftCmd(DB::WriteCmdsView const&, unsigned long, unsigned long, DB::TMTContext&) [tiflash+130797453]\n                \tdbms/src/Storages/Transaction/Region.cpp:723\n       0x7c7b65e\tDB::KVStore::handleWriteRaftCmd(DB::WriteCmdsView const&, unsigned long, unsigned long, unsigned long, DB::TMTContext&) [tiflash+130528862]\n                \tdbms/src/Storages/Transaction/KVStore.cpp:292\n       0x7c9a1e5\tHandleWriteRaftCmd [tiflash+130654693]\n                \tdbms/src/Storages/Transaction/ProxyFFI.cpp:97\n  0x7fb72b9832c4\t_$LT$engine_store_ffi..observer..TiFlashObserver$LT$T$C$ER$GT$$u20$as$u20$raftstore..coprocessor..QueryObserver$GT$::post_exec_query::h1d4100f37013ea7b [libtiflash_proxy.so+23888580]\n  0x7fb72c804b8d\traftstore::store::fsm::apply::ApplyDelegate$LT$EK$GT$::apply_raft_cmd::hcc49da5cb5fcd2aa [libtiflash_proxy.so+39099277]\n  0x7fb72c81dda8\traftstore::store::fsm::apply::ApplyDelegate$LT$EK$GT$::process_raft_cmd::h98e0bf3ec2af78bc [libtiflash_proxy.so+39202216]\n  0x7fb72c82362b\traftstore::store::fsm::apply::ApplyDelegate$LT$EK$GT$::handle_raft_committed_entries::hf0acc104021808ba [libtiflash_proxy.so+39224875]\n  0x7fb72c7f533c\traftstore::store::fsm::apply::ApplyFsm$LT$EK$GT$::handle_apply::h3ad9d04f5f1fb225 [libtiflash_proxy.so+39035708]\n  0x7fb72c7f98b2\traftstore::store::fsm::apply::ApplyFsm$LT$EK$GT$::handle_tasks::h6725ee0351e1c1c0 [libtiflash_proxy.so+39053490]\n  0x7fb72ba7062e\t_$LT$raftstore..store..fsm..apply..ApplyPoller$LT$EK$GT$$u20$as$u20$batch_system..batch..PollHandler$LT$raftstore..store..fsm..apply..ApplyFsm$LT$EK$GT$$C$raftstore..store..fsm..apply..ControlFsm$GT$$GT$::handle_normal::h93d71ef7f1d6cafd [libtiflash_proxy.so+24860206]\n  0x7fb72b9ecc83\tbatch_system::batch::Poller$LT$N$C$C$C$Handler$GT$::poll::he7782d323aabd269 [libtiflash_proxy.so+24321155]\n  0x7fb72bade2d2\tstd::sys_common::backtrace::__rust_begin_short_backtrace::h75ccd30bdcf02aee [libtiflash_proxy.so+25309906]\n  0x7fb72bb29a1e\tcore::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::hcdce1a51baa82a18 [libtiflash_proxy.so+25618974]\n  0x7fb72cfc6715\tstd::sys::unix::thread::Thread::new::thread_start::hd2791a9cabec1fda [libtiflash_proxy.so+47232789]\n                \t/rustc/96ddd32c4bfb1d78f0cd03eb068b1710a8cebeef/library/std/src/sys/unix/thread.rs:108\n  0x7fb729f8a802\tstart_thread [libc.so.6+653314]\n  0x7fb729f2a314\t__GI___clone [libc.so.6+258836]"] [source="DB::EngineStoreApplyRes DB::HandleWriteRaftCmd(const DB::EngineStoreServerWrap *, DB::WriteCmdsView, DB::RaftCmdHeader)"] [thread_id=17]

While it's a random test, and we cannot reproduce locally now. So we choose to add some more useful information before throw exception. Then when the case fails next, we can know the schema and data info, to try to produce the fail case.

@lilinghai
Copy link
Author

can't not reproduce in test and set major temporarily

@lilinghai
Copy link
Author

[2023/04/24 05:00:43.489 +08:00] [ERROR] [Exception.cpp:90] ["Code: 69, e.displayText() = DB::Exception: Negative scales and scales larger than precision are not supported. precision:22, scale:68: pk_type is 0, schema_snapshot->sorted_column_id_with_pos is  [map info : (column_id=-1025, pos=2) (column_id=-1024, pos=1) (column_id=-1, pos=0) (column_id=1, pos=3) (column_id=2, pos=4) (column_id=3, pos=5) (column_id=4, pos=6) (column_id=5, pos=7) (column_id=6, pos=8) (column_id=7, pos=9) (column_id=8, pos=10) (column_id=9, pos=11) (column_id=10, pos=12) (column_id=11, pos=13) (column_id=12, pos=14) (column_id=13, pos=15) (column_id=14, pos=16) (column_id=15, pos=17) (column_id=16, pos=18) (column_id=17, pos=19) (column_id=18, pos=20) (column_id=19, pos=21) (column_id=20, pos=22) (column_id=21, pos=23) (column_id=27, pos=24)  ];, schema_snapshot->column_defines is  [column define : (id=-1, name=_tidb_rowid, type=Int64) (id=-1024, name=_INTERNAL_VERSION, type=UInt64) (id=-1025, name=_INTERNAL_DELMARK, type=UInt8) (id=1, name=c_id, type=Int32) (id=2, name=c_d_id, type=Int32) (id=3, name=c_w_id, type=Int32) (id=4, name=c_first, type=Nullable(String)) (id=5, name=c_middle, type=Nullable(String)) (id=6, name=c_last, type=Nullable(String)) (id=7, name=c_street_1, type=Nullable(String)) (id=8, name=c_street_2, type=Nullable(String)) (id=9, name=c_city, type=Nullable(String)) (id=10, name=c_state, type=Nullable(String)) (id=11, name=c_zip, type=Nullable(String)) (id=12, name=c_phone, type=Nullable(String)) (id=13, name=c_since, type=Nullable(MyDateTime(0))) (id=14, name=c_credit, type=Nullable(String)) (id=15, name=c_credit_lim, type=Nullable(Decimal(12,2))) (id=16, name=c_discount, type=Nullable(Decimal(4,4))) (id=17, name=c_balance, type=Nullable(Decimal(12,2))) (id=18, name=c_ytd_payment, type=Nullable(Decimal(12,2))) (id=19, name=c_payment_cnt, type=Nullable(Int32)) (id=20, name=c_delivery_cnt, type=Nullable(Int32)) (id=21, name=c_data, type=Nullable(String)) (id=27, name=adc_6, type=Nullable(Decimal(5,2)))  ];, decoding_snapshot_epoch is 1, block schema is [{\"name\":\"_INTERNAL_DELMARK\",\"id\":-1025,\"type\":\"UInt8\",\"column\":\"UInt8(size = 1)\"},{\"name\":\"_INTERNAL_VERSION\",\"id\":-1024,\"type\":\"UInt64\",\"column\":\"UInt64(size = 1)\"},{\"name\":\"_tidb_rowid\",\"id\":-1,\"type\":\"Int64\",\"column\":\"Int64(size = 0)\"},{\"name\":\"c_id\",\"id\":1,\"type\":\"Int32\",\"column\":\"Int32(size = 1)\"},{\"name\":\"c_d_id\",\"id\":2,\"type\":\"Int32\",\"column\":\"Int32(size = 1)\"},{\"name\":\"c_w_id\",\"id\":3,\"type\":\"Int32\",\"column\":\"Int32(size = 1)\"},{\"name\":\"c_first\",\"id\":4,\"type\":\"Nullable(String)\",\"column\":\"Nullable(size = 1, String(size = 1), UInt8(size = 1))\"},{\"name\":\"c_middle\",\"id\":5,\"type\":\"Nullable(String)\",\"column\":\"Nullable(size = 1, String(size = 1), UInt8(size = 1))\"},{\"name\":\"c_last\",\"id\":6,\"type\":\"Nullable(String)\",\"column\":\"Nullable(size = 1, String(size = 1), UInt8(size = 1))\"},{\"name\":\"c_street_1\",\"id\":7,\"type\":\"Nullable(String)\",\"column\":\"Nullable(size = 1, String(size = 1), UInt8(size = 1))\"},{\"name\":\"c_street_2\",\"id\":8,\"type\":\"Nullable(String)\",\"column\":\"Nullable(size = 1, String(size = 1), UInt8(size = 1))\"},{\"name\":\"c_city\",\"id\":9,\"type\":\"Nullable(String)\",\"column\":\"Nullable(size = 1, String(size = 1), UInt8(size = 1))\"},{\"name\":\"c_state\",\"id\":10,\"type\":\"Nullable(String)\",\"column\":\"Nullable(size = 1, String(size = 1), UInt8(size = 1))\"},{\"name\":\"c_zip\",\"id\":11,\"type\":\"Nullable(String)\",\"column\":\"Nullable(size = 1, String(size = 1), UInt8(size = 1))\"},{\"name\":\"c_phone\",\"id\":12,\"type\":\"Nullable(String)\",\"column\":\"Nullable(size = 1, String(size = 1), UInt8(size = 1))\"},{\"name\":\"c_since\",\"id\":13,\"type\":\"Nullable(MyDateTime(0))\",\"column\":\"Nullable(size = 1, UInt64(size = 1), UInt8(size = 1))\"},{\"name\":\"c_credit\",\"id\":14,\"type\":\"Nullable(String)\",\"column\":\"Nullable(size = 1, String(size = 1), UInt8(size = 1))\"},{\"name\":\"c_credit_lim\",\"id\":15,\"type\":\"Nullable(Decimal(12,2))\",\"column\":\"Nullable(size = 1, Decimal64(size = 1), UInt8(size = 1))\"},{\"name\":\"c_discount\",\"id\":16,\"type\":\"Nullable(Decimal(4,4))\",\"column\":\"Nullable(size = 1, Decimal32(size = 1), UInt8(size = 1))\"},{\"name\":\"c_balance\",\"id\":17,\"type\":\"Nullable(Decimal(12,2))\",\"column\":\"Nullable(size = 1, Decimal64(size = 1), UInt8(size = 1))\"},{\"name\":\"c_ytd_payment\",\"id\":18,\"type\":\"Nullable(Decimal(12,2))\",\"column\":\"Nullable(size = 1, Decimal64(size = 1), UInt8(size = 1))\"},{\"name\":\"c_payment_cnt\",\"id\":19,\"type\":\"Nullable(Int32)\",\"column\":\"Nullable(size = 1, Int32(size = 1), UInt8(size = 1))\"},{\"name\":\"c_delivery_cnt\",\"id\":20,\"type\":\"Nullable(Int32)\",\"column\":\"Nullable(size = 1, Int32(size = 1), UInt8(size = 1))\"},{\"name\":\"c_data\",\"id\":21,\"type\":\"Nullable(String)\",\"column\":\"Nullable(size = 1, String(size = 1), UInt8(size = 1))\"},{\"name\":\"adc_6\",\"id\":27,\"type\":\"Nullable(Decimal(5,2))\",\"column\":\"Nullable(size = 0, Decimal32(size = 0), UInt8(size = 0))\"}] : TiKV value contains: : 8000160000000102030405060708090A0B0C0D0E0F1011121314151B02000300050014001600210030003E0049004B00540064006C006E0076007A0082008A008B008C0046024A023A0805120351483154646D333879724B426F63744F45414E5449414E544945534545316C7252574E636D6A744C4667313565344E32724439624C30435831737A755867613345547845414F353639383131313131393539353436383639373831363833380000000BCA8EAC1947430C02800000C35000040492930C027FFFFFF3E8CA0C028000000C1735030051414D573277793958694F4B5651766646614E6E586D6861465869485A7637634F69706E4C55523263755A6C446E7549766B30397A4979364336316C62464A4C597A4D4630634654334234685A65333151777169555A6E4C4B306768787738775855585949486258416938595839336A6E4C73375775454F694D3261657A5773707942723374534F4E466C635432734D76414B384F4E7159654A6C6A7433536C50586E444C37656847424A306D34564155473641573855386D5432513465694E61444D346576615430756436626A343238307645426F39426B7879463931737736344A557A573146477946504C5564514776576E576C6B5552505052376C38344F4B764D4F5547586D62525954625170774F585733373159747649746B6863393370714958756E7042595478555A4451526B5163673274424E4679724149614E47514E67703961624D526A6531504A74717264747369356A446B614A427933496B4B733953695776335443536A735262594A427544676F6635534C7631797961696C51514467616D517057417069577963494461374D6C783362724D31714D756D56794D44324F4B4C324D636C346736366146645A306656366516446201, , e.what() = DB::Exception, Stack trace:
       0x1c06c0e\tDB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) [tiflash+29387790]
                \tdbms/src/Common/Exception.h:46
       0x1da8579\tDB::createDecimal(unsigned long, unsigned long) [tiflash+31098233]
                \tdbms/src/DataTypes/DataTypeDecimal.h:199
       0x1b847d3\tDB::ColumnDecimal<DB::Decimal<int> >::decodeTiDBRowV2Datum(unsigned long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned long, bool) [tiflash+28854227]
                \tdbms/src/Columns/ColumnDecimal.cpp:258
       0x7da4e17\tDB::ColumnNullable::decodeTiDBRowV2Datum(unsigned long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned long, bool) [tiflash+131747351]
                \tdbms/src/Columns/ColumnNullable.cpp:172
       0x7fcfe2a\tbool DB::appendRowV2ToBlockImpl<false>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::__map_const_iterator<std::__1::__tree_const_iterator<std::__1::__value_type<long, unsigned long>, std::__1::__tree_node<std::__1::__value_type<long, unsigned long>, void*>*, long> >, std::__1::__map_const_iterator<std::__1::__tree_const_iterator<std::__1::__value_type<long, unsigned long>, std::__1::__tree_node<std::__1::__value_type<long, unsigned long>, void*>*, long> >, DB::Block&, unsigned long, std::__1::vector<TiDB::ColumnInfo, std::__1::allocator<TiDB::ColumnInfo> > const&, long, bool, bool) [tiflash+134020650]
                \tdbms/src/Storages/Transaction/RowCodec.cpp:499
       0x7fce804\tDB::appendRowToBlock(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::__map_const_iterator<std::__1::__tree_const_iterator<std::__1::__value_type<long, unsigned long>, std::__1::__tree_node<std::__1::__value_type<long, unsigned long>, void*>*, long> >, std::__1::__map_const_iterator<std::__1::__tree_const_iterator<std::__1::__value_type<long, unsigned long>, std::__1::__tree_node<std::__1::__value_type<long, unsigned long>, void*>*, long> >, DB::Block&, unsigned long, std::__1::shared_ptr<DB::DecodingStorageSchemaSnapshot const> const&, bool) [tiflash+134014980]
                \tdbms/src/Storages/Transaction/RowCodec.cpp:349
       0x7f9b653\tDB::RegionBlockReader::read(DB::Block&, std::__1::vector<std::__1::tuple<DB::RawTiDBPK, unsigned char, unsigned long, std::__1::shared_ptr<DB::StringObject<false> const> >, std::__1::allocator<std::__1::tuple<DB::RawTiDBPK, unsigned char, unsigned long, std::__1::shared_ptr<DB::StringObject<false> const> > > > const&, bool) [tiflash+133805651]
                \tdbms/src/Storages/Transaction/RegionBlockReader.cpp:49
       0x7f6f4b3\tDB::writeRegionDataToStorage(DB::Context&, DB::RegionPtrWithBlock const&, std::__1::vector<std::__1::tuple<DB::RawTiDBPK, unsigned char, unsigned long, std::__1::shared_ptr<DB::StringObject<false> const> >, std::__1::allocator<std::__1::tuple<DB::RawTiDBPK, unsigned char, unsigned long, std::__1::shared_ptr<DB::StringObject<false> const> > > >&, std::__1::shared_ptr<DB::Logger> const&)::$_2::operator()(bool) const [tiflash+133625011]
                \tdbms/src/Storages/Transaction/PartitionStreams.cpp:130
       0x7f6bc9a\tDB::writeRegionDataToStorage(DB::Context&, DB::RegionPtrWithBlock const&, std::__1::vector<std::__1::tuple<DB::RawTiDBPK, unsigned char, unsigned long, std::__1::shared_ptr<DB::StringObject<false> const> >, std::__1::allocator<std::__1::tuple<DB::RawTiDBPK, unsigned char, unsigned long, std::__1::shared_ptr<DB::StringObject<false> const> > > >&, std::__1::shared_ptr<DB::Logger> const&) [tiflash+133610650]
                \tdbms/src/Storages/Transaction/PartitionStreams.cpp:181
       0x7f6b95c\tDB::RegionTable::writeBlockByRegion(DB::Context&, DB::RegionPtrWithBlock const&, std::__1::vector<std::__1::tuple<DB::RawTiDBPK, unsigned char, unsigned long, std::__1::shared_ptr<DB::StringObject<false> const> >, std::__1::allocator<std::__1::tuple<DB::RawTiDBPK, unsigned char, unsigned long, std::__1::shared_ptr<DB::StringObject<false> const> > > >&, std::__1::shared_ptr<DB::Logger> const&, bool) [tiflash+133609820]
                \tdbms/src/Storages/Transaction/PartitionStreams.cpp:359
       0x7f9581d\tDB::Region::handleWriteRaftCmd(DB::WriteCmdsView const&, unsigned long, unsigned long, DB::TMTContext&) [tiflash+133781533]
                \tdbms/src/Storages/Transaction/Region.cpp:721
       0x7f53bde\tDB::KVStore::handleWriteRaftCmd(DB::WriteCmdsView const&, unsigned long, unsigned long, unsigned long, DB::TMTContext&) const [tiflash+133512158]
                \tdbms/src/Storages/Transaction/KVStore.cpp:300
       0x7f73ca5\tHandleWriteRaftCmd [tiflash+133643429]
                \tdbms/src/Storages/Transaction/ProxyFFI.cpp:97
  0x7faa3a771c94\t_$LT$engine_store_ffi..observer..TiFlashObserver$LT$T$C$ER$GT$$u20$as$u20$raftstore..coprocessor..QueryObserver$GT$::post_exec_query::h296d0616faeb805c [libtiflash_proxy.so+23932052]
  0x7faa3b6643dd\traftstore::store::fsm::apply::ApplyDelegate$LT$EK$GT$::apply_raft_cmd::h772076603687aeae [libtiflash_proxy.so+39605213]
  0x7faa3b67dc08\traftstore::store::fsm::apply::ApplyDelegate$LT$EK$GT$::process_raft_cmd::h6b425ccbeb65fe5b [libtiflash_proxy.so+39709704]
  0x7faa3b68349a\traftstore::store::fsm::apply::ApplyDelegate$LT$EK$GT$::handle_raft_committed_entries::h154771503f3a8e27 [libtiflash_proxy.so+39732378]
  0x7faa3b654bbc\traftstore::store::fsm::apply::ApplyFsm$LT$EK$GT$::handle_apply::h4ac1bdda14e1a6b2 [libtiflash_proxy.so+39541692]
  0x7faa3b659111\traftstore::store::fsm::apply::ApplyFsm$LT$EK$GT$::handle_tasks::h60926a283d96637c [libtiflash_proxy.so+39559441]
  0x7faa3a8542ce\t_$LT$raftstore..store..fsm..apply..ApplyPoller$LT$EK$GT$$u20$as$u20$batch_system..batch..PollHandler$LT$raftstore..store..fsm..apply..ApplyFsm$LT$EK$GT$$C$raftstore..store..fsm..apply..ControlFsm$GT$$GT$::handle_normal::h9a02247e902dbe59 [libtiflash_proxy.so+24859342]
  0x7faa3a7cc7b3\tbatch_system::batch::Poller$LT$N$C$C$C$Handler$GT$::poll::h4bc9478c639f2890 [libtiflash_proxy.so+24303539]
  0x7faa3a8c9388\tstd::sys_common::backtrace::__rust_begin_short_backtrace::hefaba8b6106e6145 [libtiflash_proxy.so+25338760]
  0x7faa3a907c0e\tcore::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h98d026b139926e64 [libtiflash_proxy.so+25594894]
  0x7faa3be1ba35\tstd::sys::unix::thread::Thread::new::thread_start::hd2791a9cabec1fda [libtiflash_proxy.so+47696437]
                \t/rustc/96ddd32c4bfb1d78f0cd03eb068b1710a8cebeef/library/std/src/sys/unix/thread.rs:108
  0x7faa38d6e802\tstart_thread [libc.so.6+653314]
  0x7faa38d0e450\tclone3 [libc.so.6+259152]"] [source="DB::EngineStoreApplyRes DB::HandleWriteRaftCmd(const DB::EngineStoreServerWrap *, DB::WriteCmdsView, DB::RaftCmdHeader)"] [thread_id=296]

@JaySon-Huang
Copy link
Contributor

meets another similar exception

[2023/08/23 13:46:59.270 +08:00] [ERROR] [Exception.cpp:91] ["Code: 49, e.displayText() = DB::Exception: Invalid float value length 1: pk_type is 0, schema_snapshot->sorted_column_id_with_pos is  [map info : (column_id=-1025, pos=2) (column_id=-1024, pos=1) (column_id=-1, pos=0) (column_id=1, pos=3) (column_id=2, pos=4) (column_id=3, pos=5) (column_id=4, pos=6) (column_id=5, pos=7) (column_id=6, pos=8) (column_id=7, pos=9) (column_id=8, pos=10) (column_id=9, pos=11) (column_id=10, pos=12) (column_id=11, pos=13) (column_id=12, pos=14) (column_id=13, pos=15) (column_id=14, pos=16) (column_id=15, pos=17) (column_id=16, pos=18) (column_id=17, pos=19) (column_id=18, pos=20) (column_id=19, pos=21) (column_id=20, pos=22) (column_id=21, pos=23) (column_id=138, pos=24) (column_id=139, pos=25)  ];, schema_snapshot->column_defines is  [column define : (id=-1, name=_tidb_rowid, type=Int64) (id=-1024, name=_INTERNAL_VERSION, type=UInt64) (id=-1025, name=_INTERNAL_DELMARK, type=UInt8) (id=1, name=c_id, type=Int32) (id=2, name=c_d_id, type=Int32) (id=3, name=c_w_id, type=Int32) (id=4, name=c_first, type=Nullable(String)) (id=5, name=c_middle, type=Nullable(String)) (id=6, name=c_last, type=Nullable(String)) (id=7, name=c_street_1, type=Nullable(String)) (id=8, name=c_street_2, type=Nullable(String)) (id=9, name=c_city, type=Nullable(String)) (id=10, name=c_state, type=Nullable(String)) (id=11, name=c_zip, type=Nullable(String)) (id=12, name=c_phone, type=Nullable(String)) (id=13, name=c_since, type=Nullable(MyDateTime(0))) (id=14, name=c_credit, type=Nullable(String)) (id=15, name=c_credit_lim, type=Nullable(Decimal(12,2))) (id=16, name=c_discount, type=Nullable(Decimal(4,4))) (id=17, name=c_balance, type=Nullable(Decimal(12,2))) (id=18, name=c_ytd_payment, type=Nullable(Decimal(12,2))) (id=19, name=c_payment_cnt, type=Nullable(Int32)) (id=20, name=c_delivery_cnt, type=Nullable(Int32)) (id=21, name=c_data, type=Nullable(String)) (id=138, name=adc_73, type=Nullable(Float32)) (id=139, name=cct_45, type=Nullable(Int32))  ];, decoding_snapshot_epoch is 1, block schema is [{\"name\":\"_INTERNAL_DELMARK\",\"id\":-1025,\"type\":\"UInt8\",\"column\":\"UInt8(size = 1)\"},{\"name\":\"_INTERNAL_VERSION\",\"id\":-1024,\"type\":\"UInt64\",\"column\":\"UInt64(size = 1)\"},{\"name\":\"_tidb_rowid\",\"id\":-1,\"type\":\"Int64\",\"column\":\"Int64(size = 0)\"},{\"name\":\"c_id\",\"id\":1,\"type\":\"Int32\",\"column\":\"Int32(size = 1)\"},{\"name\":\"c_d_id\",\"id\":2,\"type\":\"Int32\",\"column\":\"Int32(size = 1)\"},{\"name\":\"c_w_id\",\"id\":3,\"type\":\"Int32\",\"column\":\"Int32(size = 1)\"},{\"name\":\"c_first\",\"id\":4,\"type\":\"Nullable(String)\",\"column\":\"Nullable(size = 1, String(size = 1), UInt8(size = 1))\"},{\"name\":\"c_middle\",\"id\":5,\"type\":\"Nullable(String)\",\"column\":\"Nullable(size = 1, String(size = 1), UInt8(size = 1))\"},{\"name\":\"c_last\",\"id\":6,\"type\":\"Nullable(String)\",\"column\":\"Nullable(size = 1, String(size = 1), UInt8(size = 1))\"},{\"name\":\"c_street_1\",\"id\":7,\"type\":\"Nullable(String)\",\"column\":\"Nullable(size = 1, String(size = 1), UInt8(size = 1))\"},{\"name\":\"c_street_2\",\"id\":8,\"type\":\"Nullable(String)\",\"column\":\"Nullable(size = 1, String(size = 1), UInt8(size = 1))\"},{\"name\":\"c_city\",\"id\":9,\"type\":\"Nullable(String)\",\"column\":\"Nullable(size = 1, String(size = 1), UInt8(size = 1))\"},{\"name\":\"c_state\",\"id\":10,\"type\":\"Nullable(String)\",\"column\":\"Nullable(size = 1, String(size = 1), UInt8(size = 1))\"},{\"name\":\"c_zip\",\"id\":11,\"type\":\"Nullable(String)\",\"column\":\"Nullable(size = 1, String(size = 1), UInt8(size = 1))\"},{\"name\":\"c_phone\",\"id\":12,\"type\":\"Nullable(String)\",\"column\":\"Nullable(size = 1, String(size = 1), UInt8(size = 1))\"},{\"name\":\"c_since\",\"id\":13,\"type\":\"Nullable(MyDateTime(0))\",\"column\":\"Nullable(size = 1, UInt64(size = 1), UInt8(size = 1))\"},{\"name\":\"c_credit\",\"id\":14,\"type\":\"Nullable(String)\",\"column\":\"Nullable(size = 1, String(size = 1), UInt8(size = 1))\"},{\"name\":\"c_credit_lim\",\"id\":15,\"type\":\"Nullable(Decimal(12,2))\",\"column\":\"Nullable(size = 1, Decimal64(size = 1), UInt8(size = 1))\"},{\"name\":\"c_discount\",\"id\":16,\"type\":\"Nullable(Decimal(4,4))\",\"column\":\"Nullable(size = 1, Decimal32(size = 1), UInt8(size = 1))\"},{\"name\":\"c_balance\",\"id\":17,\"type\":\"Nullable(Decimal(12,2))\",\"column\":\"Nullable(size = 1, Decimal64(size = 1), UInt8(size = 1))\"},{\"name\":\"c_ytd_payment\",\"id\":18,\"type\":\"Nullable(Decimal(12,2))\",\"column\":\"Nullable(size = 1, Decimal64(size = 1), UInt8(size = 1))\"},{\"name\":\"c_payment_cnt\",\"id\":19,\"type\":\"Nullable(Int32)\",\"column\":\"Nullable(size = 1, Int32(size = 1), UInt8(size = 1))\"},{\"name\":\"c_delivery_cnt\",\"id\":20,\"type\":\"Nullable(Int32)\",\"column\":\"Nullable(size = 1, Int32(size = 1), UInt8(size = 1))\"},{\"name\":\"c_data\",\"id\":21,\"type\":\"Nullable(String)\",\"column\":\"Nullable(size = 1, String(size = 1), UInt8(size = 1))\"},{\"name\":\"adc_73\",\"id\":138,\"type\":\"Nullable(Float32)\",\"column\":\"Nullable(size = 0, Float32(size = 0), UInt8(size = 0))\"},{\"name\":\"cct_45\",\"id\":139,\"type\":\"Nullable(Int32)\",\"column\":\"Nullable(size = 0, Int32(size = 0), UInt8(size = 0))\"}] : TiKV value contains: : 8000160001000102030405060708090A0B0C0D0E0F1011121314158A8B0200030005001100130020002E003A004E00500059006900710073007B007F0087008F00900091001C021D028B0004B9016E75615374307669424662504F454F554748545052494154494F4E6D34435A717548726D3059334356656372527430317359614534464C514D5475534A3450524C7661735854316A51444C31323536313131313138393138333534363433353436313231000000E0D48CAC1947430C02800000C35000040486610C028000009BDE110C0280000006E52E03017A307A6B49486C6B4E6131634A57696A7854544867337A5A6F7778485941515344794E496B46555130625776376757366F626846746D316162614D424249704E4443376F70334931514E6735644452304337434B776B6C413632303045425A6E494B774E306D76624739516D613078356A78374A5253346A4C6F56667142773047616955314257795469746474464638754A7976756B636D314D42563144446C7244584D413367484E7A597965414A536F784A594F7074594A727669796B50674B4744554730623550704E3674353743704F336A366B696169585970667837414D65706F3776386C5A44675947586A4275316A5A6C6343396B46506651525635764841664747525857786133564E6754754C554B3438564D71374D72785A426674555A34424D6B6C53775833666254414E474155796C4F6E5557544C767564686B6C4B734D6E644D434F674376324B53426E6839314A6142684D72383542543255736E59646537484E354D6D697170374D564A6F6A72456A344776666C34366B314A6B4A644C39634C55670A, , e.what() = DB::Exception, Stack trace:\n\n\n       0x1c9bc3e\tDB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) [tiflash+29998142]\n                \tdbms/src/Common/Exception.h:46\n       0x1fd5c14\tDB::ColumnVector<float>::decodeTiDBRowV2Datum(unsigned long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned long, bool) [tiflash+33381396]\n       0x7f23a87\tDB::ColumnNullable::decodeTiDBRowV2Datum(unsigned long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned long, bool) [tiflash+133315207]\n                \tdbms/src/Columns/ColumnNullable.cpp:182\n       0x81598ba\tbool DB::appendRowV2ToBlockImpl<false>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::__map_const_iterator<std::__1::__tree_const_iterator<std::__1::__value_type<long, unsigned long>, std::__1::__tree_node<std::__1::__value_type<long, unsigned long>, void*>*, long> >, std::__1::__map_const_iterator<std::__1::__tree_const_iterator<std::__1::__value_type<long, unsigned long>, std::__1::__tree_node<std::__1::__value_type<long, unsigned long>, void*>*, long> >, DB::Block&, unsigned long, std::__1::vector<TiDB::ColumnInfo, std::__1::allocator<TiDB::ColumnInfo> > const&, long, bool, bool) [tiflash+135633082]\n                \tdbms/src/Storages/Transaction/RowCodec.cpp:554\n       0x8158294\tDB::appendRowToBlock(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::__map_const_iterator<std::__1::__tree_const_iterator<std::__1::__value_type<long, unsigned long>, std::__1::__tree_node<std::__1::__value_type<long, unsigned long>, void*>*, long> >, std::__1::__map_const_iterator<std::__1::__tree_const_iterator<std::__1::__value_type<long, unsigned long>, std::__1::__tree_node<std::__1::__value_type<long, unsigned long>, void*>*, long> >, DB::Block&, unsigned long, std::__1::shared_ptr<DB::DecodingStorageSchemaSnapshot const> const&, bool) [tiflash+135627412]\n                \tdbms/src/Storages/Transaction/RowCodec.cpp:362\n       0x81239f3\tDB::RegionBlockReader::read(DB::Block&, std::__1::vector<std::__1::tuple<DB::RawTiDBPK, unsigned char, unsigned long, std::__1::shared_ptr<DB::StringObject<false> const> >, std::__1::allocator<std::__1::tuple<DB::RawTiDBPK, unsigned char, unsigned long, std::__1::shared_ptr<DB::StringObject<false> const> > > > const&, bool) [tiflash+135412211]\n                \tdbms/src/Storages/Transaction/RegionBlockReader.cpp:49\n       0x80f38ff\tDB::writeRegionDataToStorage(DB::Context&, DB::RegionPtrWithBlock const&, std::__1::vector<std::__1::tuple<DB::RawTiDBPK, unsigned char, unsigned long, std::__1::shared_ptr<DB::StringObject<false> const> >, std::__1::allocator<std::__1::tuple<DB::RawTiDBPK, unsigned char, unsigned long, std::__1::shared_ptr<DB::StringObject<false> const> > > >&, std::__1::shared_ptr<DB::Logger> const&)::$_2::operator()(bool) const [tiflash+135215359]\n                \tdbms/src/Storages/Transaction/PartitionStreams.cpp:133\n       0x80efe9c\tDB::writeRegionDataToStorage(DB::Context&, DB::RegionPtrWithBlock const&, std::__1::vector<std::__1::tuple<DB::RawTiDBPK, unsigned char, unsigned long, std::__1::shared_ptr<DB::StringObject<false> const> >, std::__1::allocator<std::__1::tuple<DB::RawTiDBPK, unsigned char, unsigned long, std::__1::shared_ptr<DB::StringObject<false> const> > > >&, std::__1::shared_ptr<DB::Logger> const&) [tiflash+135200412]\n                \tdbms/src/Storages/Transaction/PartitionStreams.cpp:199\n       0x80efb06\tDB::RegionTable::writeBlockByRegion(DB::Context&, DB::RegionPtrWithBlock const&, std::__1::vector<std::__1::tuple<DB::RawTiDBPK, unsigned char, unsigned long, std::__1::shared_ptr<DB::StringObject<false> const> >, std::__1::allocator<std::__1::tuple<DB::RawTiDBPK, unsigned char, unsigned long, std::__1::shared_ptr<DB::StringObject<false> const> > > >&, std::__1::shared_ptr<DB::Logger> const&, bool) [tiflash+135199494]\n                \tdbms/src/Storages/Transaction/PartitionStreams.cpp:390\n       0x811c558\tDB::Region::handleWriteRaftCmd(DB::WriteCmdsView const&, unsigned long, unsigned long, DB::TMTContext&) [tiflash+135382360]\n                \tdbms/src/Storages/Transaction/Region.cpp:841\n       0x80d2f78\tDB::KVStore::handleWriteRaftCmdInner(DB::WriteCmdsView const&, unsigned long, unsigned long, unsigned long, DB::TMTContext&, std::__1::optional<DB::DM::RaftWriteResult>&) [tiflash+135081848]\n                \tdbms/src/Storages/Transaction/KVStore.cpp:280\n       0x80d3354\tDB::KVStore::handleWriteRaftCmd(DB::WriteCmdsView const&, unsigned long, unsigned long, unsigned long, DB::TMTContext&) [tiflash+135082836]\n                \tdbms/src/Storages/Transaction/KVStore.cpp:305\n       0x80f93c5\tHandleWriteRaftCmd [tiflash+135238597]\n                \tdbms/src/Storages/Transaction/ProxyFFI.cpp:97\n  0x7f693fe0b02a\t_$LT$engine_store_ffi..observer..TiFlashObserver$LT$T$C$ER$GT$$u20$as$u20$raftstore..coprocessor..QueryObserver$GT$::post_exec_query::hb803c7bf090298f6 [libtiflash_proxy.so+25296938]\n  0x7f6940e86abd\traftstore::store::fsm::apply::ApplyDelegate$LT$EK$GT$::apply_raft_cmd::hb13ae1a7d2dd41c4 [libtiflash_proxy.so+42580669]\n  0x7f6940ea04c8\traftstore::store::fsm::apply::ApplyDelegate$LT$EK$GT$::process_raft_cmd::h9bee616879e249ce [libtiflash_proxy.so+42685640]\n  0x7f6940ea5e14\traftstore::store::fsm::apply::ApplyDelegate$LT$EK$GT$::handle_raft_committed_entries::h5edfa7fdf2b1d350 [libtiflash_proxy.so+42708500]\n  0x7f6940e76efc\traftstore::store::fsm::apply::ApplyFsm$LT$EK$GT$::handle_apply::hc858d6a57f40bf44 [libtiflash_proxy.so+42516220]\n  0x7f6940e7b482\traftstore::store::fsm::apply::ApplyFsm$LT$EK$GT$::handle_tasks::h19de3942b4fa0f38 [libtiflash_proxy.so+42534018]\n  0x7f693ff0467e\t_$LT$raftstore..store..fsm..apply..ApplyPoller$LT$EK$GT$$u20$as$u20$batch_system..batch..PollHandler$LT$raftstore..store..fsm..apply..ApplyFsm$LT$EK$GT$$C$raftstore..store..fsm..apply..ControlFsm$GT$$GT$::handle_normal::h29727265a8d7e636 [libtiflash_proxy.so+26318462]\n  0x7f693fe72a73\tbatch_system::batch::Poller$LT$N$C$C$C$Handler$GT$::poll::ha2d11ad7acb5fea2 [libtiflash_proxy.so+25721459]\n  0x7f693ff73820\tstd::sys_common::backtrace::__rust_begin_short_backtrace::h7d8b9e58297764f6 [libtiflash_proxy.so+26773536]\n  0x7f693ffb406e\tcore::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h29e7d480a13dc6b4 [libtiflash_proxy.so+27037806]\n  0x7f69416bb9a5\tstd::sys::unix::thread::Thread::new::thread_start::hd2791a9cabec1fda [libtiflash_proxy.so+51186085]\n                \t/rustc/96ddd32c4bfb1d78f0cd03eb068b1710a8cebeef/library/std/src/sys/unix/thread.rs:108\n  0x7f693e2ba802\tstart_thread [libc.so.6+653314]\n  0x7f693e25a450\t__clone3 [libc.so.6+259152]"] [source="DB::EngineStoreApplyRes DB::HandleWriteRaftCmd(const DB::EngineStoreServerWrap *, DB::WriteCmdsView, DB::RaftCmdHeader)"] [thread_id=1457]

@JaySon-Huang
Copy link
Contributor

JaySon-Huang commented Sep 12, 2023

[2023/09/12 10:02:00.507 +08:00] [INFO] [TiDBSchemaSyncer.cpp:185] ["Start sync table schema, table_id=5028"] [source="keyspace=4294967295"] [thread_id=50]
[2023/09/12 10:02:00.508 +08:00] [DEBUG] [SchemaGetter.cpp:305] ["Get Table Info from TiKV : {\"id\":4970,\"name\":{\"O\":\"customer\",\"L\":\"customer\"},\"charset\":\"utf8mb4\",\"collate\":\"utf8mb4_bin\",\"cols\":[{\"id\":1,\"name\":{\"O\":\"c_id\",\"L\":\"c_id\"},\"offset\":0,\"origin_default\":null,\"origin_default_bit\":null,\"default\":null,\"default_bit\":null,\"default_is_expr\":false,\"generated_expr_string\":\"\",\"generated_stored\":false,\"dependences\":null,\"type\":{\"Tp\":3,\"Flag\":4099,\"Flen\":11,\"Decimal\":0,\"Charset\":\"binary\",\"Collate\":\"binary\",\"Elems\":null,\"ElemsIsBinaryLit\":null,\"Array\":false},\"state\":5,\"comment\":\"\",\"hidden\":false,\"change_state_info\":null,\"version\":2},{\"id\":2,\"name\":{\"O\":\"c_d_id\",\"L\":\"c_d_id\"},\"offset\":1,\"origin_default\":null,\"origin_default_bit\":null,\"default\":null,\"default_bit\":null,\"default_is_expr\":false,\"generated_expr_string\":\"\",\"generated_stored\":false,\"dependences\":null,\"type\":{\"Tp\":3,\"Flag\":4099,\"Flen\":11,\"Decimal\":0,\"Charset\":\"binary\",\"Collate\":\"binary\",\"Elems\":null,\"ElemsIsBinaryLit\":null,\"Array\":false},\"state\":5,\"comment\":\"\",\"hidden\":false,\"change_state_info\":null,\"version\":2},{\"id\":3,\"name\":{\"O\":\"c_w_id\",\"L\":\"c_w_id\"},\"offset\":2,\"origin_default\":null,\"origin_default_bit\":null,\"default\":null,\"default_bit\":null,\"default_is_expr\":false,\"generated_expr_string\":\"\",\"generated_stored\":false,\"dependences\":null,\"type\":{\"Tp\":3,\"Flag\":4107,\"Flen\":11,\"Decimal\":0,\"Charset\":\"binary\",\"Collate\":\"binary\",\"Elems\":null,\"ElemsIsBinaryLit\":null,\"Array\":false},\"state\":5,\"comment\":\"\",\"hidden\":false,\"change_state_info\":null,\"version\":2},{\"id\":4,\"name\":{\"O\":\"c_first\",\"L\":\"c_first\"},\"offset\":3,\"origin_default\":null,\"origin_default_bit\":null,\"default\":null,\"default_bit\":null,\"default_is_expr\":false,\"generated_expr_string\":\"\",\"generated_stored\":false,\"dependences\":null,\"type\":{\"Tp\":15,\"Flag\":0,\"Flen\":16,\"Decimal\":0,\"Charset\":\"utf8mb4\",\"Collate\":\"utf8mb4_bin\",\"Elems\":null,\"ElemsIsBinaryLit\":null,\"Array\":false},\"state\":5,\"comment\":\"\",\"hidden\":false,\"change_state_info\":null,\"version\":2},{\"id\":5,\"name\":{\"O\":\"c_middle\",\"L\":\"c_middle\"},\"offset\":4,\"origin_default\":null,\"origin_default_bit\":null,\"default\":null,\"default_bit\":null,\"default_is_expr\":false,\"generated_expr_string\":\"\",\"generated_stored\":false,\"dependences\":null,\"type\":{\"Tp\":254,\"Flag\":0,\"Flen\":2,\"Decimal\":0,\"Charset\":\"utf8mb4\",\"Collate\":\"utf8mb4_bin\",\"Elems\":null,\"ElemsIsBinaryLit\":null,\"Array\":false},\"state\":5,\"comment\":\"\",\"hidden\":false,\"change_state_info\":null,\"version\":2},{\"id\":6,\"name\":{\"O\":\"c_last\",\"L\":\"c_last\"},\"offset\":5,\"origin_default\":null,\"origin_default_bit\":null,\"default\":null,\"default_bit\":null,\"default_is_expr\":false,\"generated_expr_string\":\"\",\"generated_stored\":false,\"dependences\":null,\"type\":{\"Tp\":15,\"Flag\":0,\"Flen\":16,\"Decimal\":0,\"Charset\":\"utf8mb4\",\"Collate\":\"utf8mb4_bin\",\"Elems\":null,\"ElemsIsBinaryLit\":null,\"Array\":false},\"state\":5,\"comment\":\"\",\"hidden\":false,\"change_state_info\":null,\"version\":2},{\"id\":7,\"name\":{\"O\":\"c_street_1\",\"L\":\"c_street_1\"},\"offset\":6,\"origin_default\":null,\"origin_default_bit\":null,\"default\":null,\"default_bit\":null,\"default_is_expr\":false,\"generated_expr_string\":\"\",\"generated_stored\":false,\"dependences\":null,\"type\":{\"Tp\":15,\"Flag\":0,\"Flen\":20,\"Decimal\":0,\"Charset\":\"utf8mb4\",\"Collate\":\"utf8mb4_bin\",\"Elems\":null,\"ElemsIsBinaryLit\":null,\"Array\":false},\"state\":5,\"comment\":\"\",\"hidden\":false,\"change_state_info\":null,\"version\":2},{\"id\":8,\"name\":{\"O\":\"c_street_2\",\"L\":\"c_street_2\"},\"offset\":7,\"origin_default\":null,\"origin_default_bit\":null,\"default\":null,\"default_bit\":null,\"default_is_expr\":false,\"generated_expr_string\":\"\",\"generated_stored\":false,\"dependences\":null,\"type\":{\"Tp\":15,\"Flag\":0,\"Flen\":20,\"Decimal\":0,\"Charset\":\"utf8mb4\",\"Collate\":\"utf8mb4_bin\",\"Elems\":null,\"ElemsIsBinaryLit\":null,\"Array\":false},\"state\":5,\"comment\":\"\",\"hidden\":false,\"change_state_info\":null,\"version\":2},{\"id\":9,\"name\":{\"O\":\"c_city\",\"L\":\"c_city\"},\"offset\":8,\"origin_default\":null,\"origin_default_bit\":null,\"default\":null,\"default_bit\":null,\"default_is_expr\":false,\"generated_expr_string\":\"\",\"generated_stored\":false,\"dependences\":null,\"type\":{\"Tp\":15,\"Flag\":0,\"Flen\":20,\"Decimal\":0,\"Charset\":\"utf8mb4\",\"Collate\":\"utf8mb4_bin\",\"Elems\":null,\"ElemsIsBinaryLit\":null,\"Array\":false},\"state\":5,\"comment\":\"\",\"hidden\":false,\"change_state_info\":null,\"version\":2},{\"id\":10,\"name\":{\"O\":\"c_state\",\"L\":\"c_state\"},\"offset\":9,\"origin_default\":null,\"origin_default_bit\":null,\"default\":null,\"default_bit\":null,\"default_is_expr\":false,\"generated_expr_string\":\"\",\"generated_stored\":false,\"dependences\":null,\"type\":{\"Tp\":254,\"Flag\":0,\"Flen\":2,\"Decimal\":0,\"Charset\":\"utf8mb4\",\"Collate\":\"utf8mb4_bin\",\"Elems\":null,\"ElemsIsBinaryLit\":null,\"Array\":false},\"state\":5,\"comment\":\"\",\"hidden\":false,\"change_state_info\":null,\"version\":2},{\"id\":11,\"name\":{\"O\":\"c_zip\",\"L\":\"c_zip\"},\"offset\":10,\"origin_default\":null,\"origin_default_bit\":null,\"default\":null,\"default_bit\":null,\"default_is_expr\":false,\"generated_expr_string\":\"\",\"generated_stored\":false,\"dependences\":null,\"type\":{\"Tp\":254,\"Flag\":0,\"Flen\":9,\"Decimal\":0,\"Charset\":\"utf8mb4\",\"Collate\":\"utf8mb4_bin\",\"Elems\":null,\"ElemsIsBinaryLit\":null,\"Array\":false},\"state\":5,\"comment\":\"\",\"hidden\":false,\"change_state_info\":null,\"version\":2},{\"id\":12,\"name\":{\"O\":\"c_phone\",\"L\":\"c_phone\"},\"offset\":11,\"origin_default\":null,\"origin_default_bit\":null,\"default\":null,\"default_bit\":null,\"default_is_expr\":false,\"generated_expr_string\":\"\",\"generated_stored\":false,\"dependences\":null,\"type\":{\"Tp\":254,\"Flag\":0,\"Flen\":16,\"Decimal\":0,\"Charset\":\"utf8mb4\",\"Collate\":\"utf8mb4_bin\",\"Elems\":null,\"ElemsIsBinaryLit\":null,\"Array\":false},\"state\":5,\"comment\":\"\",\"hidden\":false,\"change_state_info\":null,\"version\":2},{\"id\":13,\"name\":{\"O\":\"c_since\",\"L\":\"c_since\"},\"offset\":12,\"origin_default\":null,\"origin_default_bit\":null,\"default\":null,\"default_bit\":null,\"default_is_expr\":false,\"generated_expr_string\":\"\",\"generated_stored\":false,\"dependences\":null,\"type\":{\"Tp\":12,\"Flag\":128,\"Flen\":19,\"Decimal\":0,\"Charset\":\"binary\",\"Collate\":\"binary\",\"Elems\":null,\"ElemsIsBinaryLit\":null,\"Array\":false},\"state\":5,\"comment\":\"\",\"hidden\":false,\"change_state_info\":null,\"version\":2},{\"id\":14,\"name\":{\"O\":\"c_credit\",\"L\":\"c_credit\"},\"offset\":13,\"origin_default\":null,\"origin_default_bit\":null,\"default\":null,\"default_bit\":null,\"default_is_expr\":false,\"generated_expr_string\":\"\",\"generated_stored\":false,\"dependences\":null,\"type\":{\"Tp\":254,\"Flag\":0,\"Flen\":2,\"Decimal\":0,\"Charset\":\"utf8mb4\",\"Collate\":\"utf8mb4_bin\",\"Elems\":null,\"ElemsIsBinaryLit\":null,\"Array\":false},\"state\":5,\"comment\":\"\",\"hidden\":false,\"change_state_info\":null,\"version\":2},{\"id\":15,\"name\":{\"O\":\"c_credit_lim\",\"L\":\"c_credit_lim\"},\"offset\":14,\"origin_default\":null,\"origin_default_bit\":null,\"default\":null,\"default_bit\":null,\"default_is_expr\":false,\"generated_expr_string\":\"\",\"generated_stored\":false,\"dependences\":null,\"type\":{\"Tp\":246,\"Flag\":0,\"Flen\":12,\"Decimal\":2,\"Charset\":\"binary\",\"Collate\":\"binary\",\"Elems\":null,\"ElemsIsBinaryLit\":null,\"Array\":false},\"state\":5,\"comment\":\"\",\"hidden\":false,\"change_state_info\":null,\"version\":2},{\"id\":16,\"name\":{\"O\":\"c_discount\",\"L\":\"c_discount\"},\"offset\":15,\"origin_default\":null,\"origin_default_bit\":null,\"default\":null,\"default_bit\":null,\"default_is_expr\":false,\"generated_expr_string\":\"\",\"generated_stored\":false,\"dependences\":null,\"type\":{\"Tp\":246,\"Flag\":0,\"Flen\":4,\"Decimal\":4,\"Charset\":\"binary\",\"Collate\":\"binary\",\"Elems\":null,\"ElemsIsBinaryLit\":null,\"Array\":false},\"state\":5,\"comment\":\"\",\"hidden\":false,\"change_state_info\":null,\"version\":2},{\"id\":17,\"name\":{\"O\":\"c_balance\",\"L\":\"c_balance\"},\"offset\":16,\"origin_default\":null,\"origin_default_bit\":null,\"default\":null,\"default_bit\":null,\"default_is_expr\":false,\"generated_expr_string\":\"\",\"generated_stored\":false,\"dependences\":null,\"type\":{\"Tp\":246,\"Flag\":0,\"Flen\":12,\"Decimal\":2,\"Charset\":\"binary\",\"Collate\":\"binary\",\"Elems\":null,\"ElemsIsBinaryLit\":null,\"Array\":false},\"state\":5,\"comment\":\"\",\"hidden\":false,\"change_state_info\":null,\"version\":2},{\"id\":18,\"name\":{\"O\":\"c_ytd_payment\",\"L\":\"c_ytd_payment\"},\"offset\":17,\"origin_default\":null,\"origin_default_bit\":null,\"default\":null,\"default_bit\":null,\"default_is_expr\":false,\"generated_expr_string\":\"\",\"generated_stored\":false,\"dependences\":null,\"type\":{\"Tp\":246,\"Flag\":0,\"Flen\":12,\"Decimal\":2,\"Charset\":\"binary\",\"Collate\":\"binary\",\"Elems\":null,\"ElemsIsBinaryLit\":null,\"Array\":false},\"state\":5,\"comment\":\"\",\"hidden\":false,\"change_state_info\":null,\"version\":2},{\"id\":19,\"name\":{\"O\":\"c_payment_cnt\",\"L\":\"c_payment_cnt\"},\"offset\":18,\"origin_default\":null,\"origin_default_bit\":null,\"default\":null,\"default_bit\":null,\"default_is_expr\":false,\"generated_expr_string\":\"\",\"generated_stored\":false,\"dependences\":null,\"type\":{\"Tp\":3,\"Flag\":0,\"Flen\":11,\"Decimal\":0,\"Charset\":\"binary\",\"Collate\":\"binary\",\"Elems\":null,\"ElemsIsBinaryLit\":null,\"Array\":false},\"state\":5,\"comment\":\"\",\"hidden\":false,\"change_state_info\":null,\"version\":2},{\"id\":20,\"name\":{\"O\":\"c_delivery_cnt\",\"L\":\"c_delivery_cnt\"},\"offset\":19,\"origin_default\":null,\"origin_default_bit\":null,\"default\":null,\"default_bit\":null,\"default_is_expr\":false,\"generated_expr_string\":\"\",\"generated_stored\":false,\"dependences\":null,\"type\":{\"Tp\":3,\"Flag\":0,\"Flen\":11,\"Decimal\":0,\"Charset\":\"binary\",\"Collate\":\"binary\",\"Elems\":null,\"ElemsIsBinaryLit\":null,\"Array\":false},\"state\":5,\"comment\":\"\",\"hidden\":false,\"change_state_info\":null,\"version\":2},{\"id\":21,\"name\":{\"O\":\"c_data\",\"L\":\"c_data\"},\"offset\":20,\"origin_default\":null,\"origin_default_bit\":null,\"default\":null,\"default_bit\":null,\"default_is_expr\":false,\"generated_expr_string\":\"\",\"generated_stored\":false,\"dependences\":null,\"type\":{\"Tp\":15,\"Flag\":0,\"Flen\":500,\"Decimal\":0,\"Charset\":\"utf8mb4\",\"Collate\":\"utf8mb4_bin\",\"Elems\":null,\"ElemsIsBinaryLit\":null,\"Array\":false},\"state\":5,\"comment\":\"\",\"hidden\":false,\"change_state_info\":null,\"version\":2},{\"id\":48,\"name\":{\"O\":\"cct_2\",\"L\":\"cct_2\"},\"offset\":21,\"origin_default\":null,\"origin_default_bit\":null,\"default\":null,\"default_bit\":null,\"default_is_expr\":false,\"generated_expr_string\":\"\",\"generated_stored\":false,\"dependences\":null,\"type\":{\"Tp\":3,\"Flag\":0,\"Flen\":11,\"Decimal\":0,\"Charset\":\"binary\",\"Collate\":\"binary\",\"Elems\":null,\"ElemsIsBinaryLit\":null,\"Array\":false},\"state\":5,\"comment\":\"\",\"hidden\":false,\"change_state_info\":null,\"version\":2},{\"id\":47,\"name\":{\"O\":\"adc_25\",\"L\":\"adc_25\"},\"offset\":22,\"origin_default\":\"2023-09-12 10:01:13\",\"origin_default_bit\":null,\"default\":\"CURRENT_TIMESTAMP\",\"default_bit\":null,\"default_is_expr\":false,\"generated_expr_string\":\"\",\"generated_stored\":false,\"dependences\":null,\"type\":{\"Tp\":12,\"Flag\":8320,\"Flen\":19,\"Decimal\":0,\"Charset\":\"binary\",\"Collate\":\"binary\",\"Elems\":null,\"ElemsIsBinaryLit\":null,\"Array\":false},\"state\":2,\"comment\":\"\",\"hidden\":false,\"change_state_info\":null,\"version\":2}],\"index_info\":[{\"id\":1,\"idx_name\":{\"O\":\"PRIMARY\",\"L\":\"primary\"},\"tbl_name\":{\"O\":\"\",\"L\":\"\"},\"idx_cols\":[{\"name\":{\"O\":\"c_w_id\",\"L\":\"c_w_id\"},\"offset\":2,\"length\":-1},{\"name\":{\"O\":\"c_d_id\",\"L\":\"c_d_id\"},\"offset\":1,\"length\":-1},{\"name\":{\"O\":\"c_id\",\"L\":\"c_id\"},\"offset\":0,\"length\":-1}],\"state\":5,\"backfill_state\":0,\"comment\":\"\",\"index_type\":1,\"is_unique\":true,\"is_primary\":true,\"is_invisible\":false,\"is_global\":false,\"mv_index\":false},{\"id\":2,\"idx_name\":{\"O\":\"idx_customer\",\"L\":\"idx_customer\"},\"tbl_name\":{\"O\":\"\",\"L\":\"\"},\"idx_cols\":[{\"name\":{\"O\":\"c_w_id\",\"L\":\"c_w_id\"},\"offset\":2,\"length\":-1},{\"name\":{\"O\":\"c_d_id\",\"L\":\"c_d_id\"},\"offset\":1,\"length\":-1},{\"name\":{\"O\":\"c_last\",\"L\":\"c_last\"},\"offset\":5,\"length\":-1},{\"name\":{\"O\":\"c_first\",\"L\":\"c_first\"},\"offset\":3,\"length\":-1}],\"state\":5,\"backfill_state\":0,\"comment\":\"\",\"index_type\":1,\"is_unique\":false,\"is_primary\":false,\"is_invisible\":false,\"is_global\":false,\"mv_index\":false}],\"constraint_info\":null,\"fk_info\":[],\"state\":5,\"pk_is_handle\":false,\"is_common_handle\":false,\"common_handle_version\":0,\"comment\":\"\",\"auto_inc_id\":30207016,\"auto_id_cache\":0,\"auto_rand_id\":0,\"max_col_id\":48,\"max_idx_id\":2,\"max_fk_id\":0,\"max_cst_id\":0,\"update_timestamp\":444198845243195478,\"ShardRowIDBits\":0,\"max_shard_row_id_bits\":0,\"auto_random_bits\":0,\"auto_random_range_bits\":0,\"pre_split_regions\":0,\"partition\":{\"type\":2,\"expr\":\"`c_w_id`\",\"columns\":[],\"enable\":true,\"definitions\":[{\"id\":4971,\"name\":{\"O\":\"p0\",\"L\":\"p0\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":4972,\"name\":{\"O\":\"p1\",\"L\":\"p1\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":4973,\"name\":{\"O\":\"p2\",\"L\":\"p2\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":4974,\"name\":{\"O\":\"p3\",\"L\":\"p3\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":4975,\"name\":{\"O\":\"p4\",\"L\":\"p4\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":4976,\"name\":{\"O\":\"p5\",\"L\":\"p5\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":4977,\"name\":{\"O\":\"p6\",\"L\":\"p6\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":4978,\"name\":{\"O\":\"p7\",\"L\":\"p7\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":4979,\"name\":{\"O\":\"p8\",\"L\":\"p8\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":4980,\"name\":{\"O\":\"p9\",\"L\":\"p9\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":4981,\"name\":{\"O\":\"p10\",\"L\":\"p10\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":4982,\"name\":{\"O\":\"p11\",\"L\":\"p11\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":4983,\"name\":{\"O\":\"p12\",\"L\":\"p12\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":4984,\"name\":{\"O\":\"p13\",\"L\":\"p13\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":4985,\"name\":{\"O\":\"p14\",\"L\":\"p14\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":4986,\"name\":{\"O\":\"p15\",\"L\":\"p15\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":4987,\"name\":{\"O\":\"p16\",\"L\":\"p16\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":4988,\"name\":{\"O\":\"p17\",\"L\":\"p17\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":4989,\"name\":{\"O\":\"p18\",\"L\":\"p18\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":4990,\"name\":{\"O\":\"p19\",\"L\":\"p19\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":4991,\"name\":{\"O\":\"p20\",\"L\":\"p20\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":4992,\"name\":{\"O\":\"p21\",\"L\":\"p21\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":4993,\"name\":{\"O\":\"p22\",\"L\":\"p22\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":4994,\"name\":{\"O\":\"p23\",\"L\":\"p23\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":4995,\"name\":{\"O\":\"p24\",\"L\":\"p24\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":4996,\"name\":{\"O\":\"p25\",\"L\":\"p25\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":4997,\"name\":{\"O\":\"p26\",\"L\":\"p26\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":4998,\"name\":{\"O\":\"p27\",\"L\":\"p27\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":4999,\"name\":{\"O\":\"p28\",\"L\":\"p28\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5000,\"name\":{\"O\":\"p29\",\"L\":\"p29\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5001,\"name\":{\"O\":\"p30\",\"L\":\"p30\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5002,\"name\":{\"O\":\"p31\",\"L\":\"p31\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5003,\"name\":{\"O\":\"p32\",\"L\":\"p32\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5004,\"name\":{\"O\":\"p33\",\"L\":\"p33\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5005,\"name\":{\"O\":\"p34\",\"L\":\"p34\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5006,\"name\":{\"O\":\"p35\",\"L\":\"p35\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5007,\"name\":{\"O\":\"p36\",\"L\":\"p36\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5008,\"name\":{\"O\":\"p37\",\"L\":\"p37\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5009,\"name\":{\"O\":\"p38\",\"L\":\"p38\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5010,\"name\":{\"O\":\"p39\",\"L\":\"p39\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5011,\"name\":{\"O\":\"p40\",\"L\":\"p40\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5012,\"name\":{\"O\":\"p41\",\"L\":\"p41\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5013,\"name\":{\"O\":\"p42\",\"L\":\"p42\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5014,\"name\":{\"O\":\"p43\",\"L\":\"p43\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5015,\"name\":{\"O\":\"p44\",\"L\":\"p44\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5016,\"name\":{\"O\":\"p45\",\"L\":\"p45\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5017,\"name\":{\"O\":\"p46\",\"L\":\"p46\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5018,\"name\":{\"O\":\"p47\",\"L\":\"p47\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5019,\"name\":{\"O\":\"p48\",\"L\":\"p48\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5020,\"name\":{\"O\":\"p49\",\"L\":\"p49\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5021,\"name\":{\"O\":\"p50\",\"L\":\"p50\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5022,\"name\":{\"O\":\"p51\",\"L\":\"p51\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5023,\"name\":{\"O\":\"p52\",\"L\":\"p52\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5024,\"name\":{\"O\":\"p53\",\"L\":\"p53\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5025,\"name\":{\"O\":\"p54\",\"L\":\"p54\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5026,\"name\":{\"O\":\"p55\",\"L\":\"p55\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5027,\"name\":{\"O\":\"p56\",\"L\":\"p56\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5028,\"name\":{\"O\":\"p57\",\"L\":\"p57\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5029,\"name\":{\"O\":\"p58\",\"L\":\"p58\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5030,\"name\":{\"O\":\"p59\",\"L\":\"p59\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5031,\"name\":{\"O\":\"p60\",\"L\":\"p60\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5032,\"name\":{\"O\":\"p61\",\"L\":\"p61\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5033,\"name\":{\"O\":\"p62\",\"L\":\"p62\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5034,\"name\":{\"O\":\"p63\",\"L\":\"p63\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5035,\"name\":{\"O\":\"p64\",\"L\":\"p64\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5036,\"name\":{\"O\":\"p65\",\"L\":\"p65\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5037,\"name\":{\"O\":\"p66\",\"L\":\"p66\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5038,\"name\":{\"O\":\"p67\",\"L\":\"p67\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5039,\"name\":{\"O\":\"p68\",\"L\":\"p68\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5040,\"name\":{\"O\":\"p69\",\"L\":\"p69\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5041,\"name\":{\"O\":\"p70\",\"L\":\"p70\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5042,\"name\":{\"O\":\"p71\",\"L\":\"p71\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5043,\"name\":{\"O\":\"p72\",\"L\":\"p72\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5044,\"name\":{\"O\":\"p73\",\"L\":\"p73\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5045,\"name\":{\"O\":\"p74\",\"L\":\"p74\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5046,\"name\":{\"O\":\"p75\",\"L\":\"p75\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5047,\"name\":{\"O\":\"p76\",\"L\":\"p76\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5048,\"name\":{\"O\":\"p77\",\"L\":\"p77\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5049,\"name\":{\"O\":\"p78\",\"L\":\"p78\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5050,\"name\":{\"O\":\"p79\",\"L\":\"p79\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5051,\"name\":{\"O\":\"p80\",\"L\":\"p80\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5052,\"name\":{\"O\":\"p81\",\"L\":\"p81\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5053,\"name\":{\"O\":\"p82\",\"L\":\"p82\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5054,\"name\":{\"O\":\"p83\",\"L\":\"p83\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5055,\"name\":{\"O\":\"p84\",\"L\":\"p84\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5056,\"name\":{\"O\":\"p85\",\"L\":\"p85\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5057,\"name\":{\"O\":\"p86\",\"L\":\"p86\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5058,\"name\":{\"O\":\"p87\",\"L\":\"p87\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5059,\"name\":{\"O\":\"p88\",\"L\":\"p88\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5060,\"name\":{\"O\":\"p89\",\"L\":\"p89\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5061,\"name\":{\"O\":\"p90\",\"L\":\"p90\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5062,\"name\":{\"O\":\"p91\",\"L\":\"p91\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5063,\"name\":{\"O\":\"p92\",\"L\":\"p92\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5064,\"name\":{\"O\":\"p93\",\"L\":\"p93\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5065,\"name\":{\"O\":\"p94\",\"L\":\"p94\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5066,\"name\":{\"O\":\"p95\",\"L\":\"p95\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5067,\"name\":{\"O\":\"p96\",\"L\":\"p96\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5068,\"name\":{\"O\":\"p97\",\"L\":\"p97\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5069,\"name\":{\"O\":\"p98\",\"L\":\"p98\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null},{\"id\":5070,\"name\":{\"O\":\"p99\",\"L\":\"p99\"},\"less_than\":[],\"in_values\":null,\"policy_ref_info\":null}],\"adding_definitions\":[],\"dropping_definitions\":[],\"NewPartitionIDs\":null,\"states\":null,\"num\":100,\"ddl_state\":0,\"new_table_id\":0,\"ddl_type\":0,\"ddl_expr\":\"\",\"ddl_columns\":null},\"compression\":\"\",\"view\":null,\"sequence\":null,\"Lock\":null,\"version\":3,\"tiflash_replica\":{\"Count\":2,\"LocationLabels\":[],\"Available\":true,\"AvailablePartitionIDs\":[4987,5033,4985,4988,5007,5032,5034,5030,5059,5031,5029,5049,5028,4974,5012,5006,5011,5013,5050,5061,5024,5046,5047,4984,4989,4990,5045,4979,4986,5036,5038,5039,4996,5040,4983,5043,5017,5010,5016,5052,5018,5019,5008,5065,5009,5014,5015,5020,5026,5042,5044,5069,4972,4995,4997,4998,5023,5025,5041,5053,5054,4973,4981,4999,5000,5001,5048,4978,5051,5002,5003,5066,4991,5055,4982,5022,5056,5064,4971,4975,4976,4977,4980,4993,5037,5058,4992,4994,5004,5021,5005,5027,5035,5057,5060,5062,5063,5067,5068,5070]},\"is_columnar\":false,\"temp_table_type\":0,\"cache_table_status\":0,\"policy_ref_info\":null,\"stats_options\":null,\"exchange_partition_info\":null,\"ttl_info\":null}"] [thread_id=50]
[2023/09/12 10:02:00.510 +08:00] [INFO] [SchemaBuilder.cpp:1226] ["Altering table db_4358.t_5028, database_id=4358 table_id=5028"] [source="keyspace=4294967295"] [thread_id=50]
[2023/09/12 10:02:00.510 +08:00] [DEBUG] [KVStore.cpp:581] ["[region_id=48094] approx mem cache info: rows 40, bytes 6758, gap 80/200"] [thread_id=55]
[2023/09/12 10:02:00.510 +08:00] [DEBUG] [StorageDeltaMerge.cpp:1515] ["Update table_info: {\"belonging_table_id\":4970,\"cols\":[{\"comment\":\"\",\"default\":null,\"default_bit\":null,\"id\":1,\"name\":{\"L\":\"c_id\",\"O\":\"c_id\"},\"offset\":0,\"origin_default\":null,\"state\":5,\"type\":{\"Charset\":\"binary\",\"Collate\":\"binary\",\"Decimal\":0,\"Elems\":null,\"Flag\":4099,\"Flen\":11,\"Tp\":3}},{\"comment\":\"\",\"default\":null,\"default_bit\":null,\"id\":2,\"name\":{\"L\":\"c_d_id\",\"O\":\"c_d_id\"},\"offset\":1,\"origin_default\":null,\"state\":5,\"type\":{\"Charset\":\"binary\",\"Collate\":\"binary\",\"Decimal\":0,\"Elems\":null,\"Flag\":4099,\"Flen\":11,\"Tp\":3}},{\"comment\":\"\",\"default\":null,\"default_bit\":null,\"id\":3,\"name\":{\"L\":\"c_w_id\",\"O\":\"c_w_id\"},\"offset\":2,\"origin_default\":null,\"state\":5,\"type\":{\"Charset\":\"binary\",\"Collate\":\"binary\",\"Decimal\":0,\"Elems\":null,\"Flag\":4107,\"Flen\":11,\"Tp\":3}},{\"comment\":\"\",\"default\":null,\"default_bit\":null,\"id\":4,\"name\":{\"L\":\"c_first\",\"O\":\"c_first\"},\"offset\":3,\"origin_default\":null,\"state\":5,\"type\":{\"Charset\":\"utf8mb4\",\"Collate\":\"utf8mb4_bin\",\"Decimal\":0,\"Elems\":null,\"Flag\":0,\"Flen\":16,\"Tp\":15}},{\"comment\":\"\",\"default\":null,\"default_bit\":null,\"id\":5,\"name\":{\"L\":\"c_middle\",\"O\":\"c_middle\"},\"offset\":4,\"origin_default\":null,\"state\":5,\"type\":{\"Charset\":\"utf8mb4\",\"Collate\":\"utf8mb4_bin\",\"Decimal\":0,\"Elems\":null,\"Flag\":0,\"Flen\":2,\"Tp\":254}},{\"comment\":\"\",\"default\":null,\"default_bit\":null,\"id\":6,\"name\":{\"L\":\"c_last\",\"O\":\"c_last\"},\"offset\":5,\"origin_default\":null,\"state\":5,\"type\":{\"Charset\":\"utf8mb4\",\"Collate\":\"utf8mb4_bin\",\"Decimal\":0,\"Elems\":null,\"Flag\":0,\"Flen\":16,\"Tp\":15}},{\"comment\":\"\",\"default\":null,\"default_bit\":null,\"id\":7,\"name\":{\"L\":\"c_street_1\",\"O\":\"c_street_1\"},\"offset\":6,\"origin_default\":null,\"state\":5,\"type\":{\"Charset\":\"utf8mb4\",\"Collate\":\"utf8mb4_bin\",\"Decimal\":0,\"Elems\":null,\"Flag\":0,\"Flen\":20,\"Tp\":15}},{\"comment\":\"\",\"default\":null,\"default_bit\":null,\"id\":8,\"name\":{\"L\":\"c_street_2\",\"O\":\"c_street_2\"},\"offset\":7,\"origin_default\":null,\"state\":5,\"type\":{\"Charset\":\"utf8mb4\",\"Collate\":\"utf8mb4_bin\",\"Decimal\":0,\"Elems\":null,\"Flag\":0,\"Flen\":20,\"Tp\":15}},{\"comment\":\"\",\"default\":null,\"default_bit\":null,\"id\":9,\"name\":{\"L\":\"c_city\",\"O\":\"c_city\"},\"offset\":8,\"origin_default\":null,\"state\":5,\"type\":{\"Charset\":\"utf8mb4\",\"Collate\":\"utf8mb4_bin\",\"Decimal\":0,\"Elems\":null,\"Flag\":0,\"Flen\":20,\"Tp\":15}},{\"comment\":\"\",\"default\":null,\"default_bit\":null,\"id\":10,\"name\":{\"L\":\"c_state\",\"O\":\"c_state\"},\"offset\":9,\"origin_default\":null,\"state\":5,\"type\":{\"Charset\":\"utf8mb4\",\"Collate\":\"utf8mb4_bin\",\"Decimal\":0,\"Elems\":null,\"Flag\":0,\"Flen\":2,\"Tp\":254}},{\"comment\":\"\",\"default\":null,\"default_bit\":null,\"id\":11,\"name\":{\"L\":\"c_zip\",\"O\":\"c_zip\"},\"offset\":10,\"origin_default\":null,\"state\":5,\"type\":{\"Charset\":\"utf8mb4\",\"Collate\":\"utf8mb4_bin\",\"Decimal\":0,\"Elems\":null,\"Flag\":0,\"Flen\":9,\"Tp\":254}},{\"comment\":\"\",\"default\":null,\"default_bit\":null,\"id\":12,\"name\":{\"L\":\"c_phone\",\"O\":\"c_phone\"},\"offset\":11,\"origin_default\":null,\"state\":5,\"type\":{\"Charset\":\"utf8mb4\",\"Collate\":\"utf8mb4_bin\",\"Decimal\":0,\"Elems\":null,\"Flag\":0,\"Flen\":16,\"Tp\":254}},{\"comment\":\"\",\"default\":null,\"default_bit\":null,\"id\":13,\"name\":{\"L\":\"c_since\",\"O\":\"c_since\"},\"offset\":12,\"origin_default\":null,\"state\":5,\"type\":{\"Charset\":\"binary\",\"Collate\":\"binary\",\"Decimal\":0,\"Elems\":null,\"Flag\":128,\"Flen\":19,\"Tp\":12}},{\"comment\":\"\",\"default\":null,\"default_bit\":null,\"id\":14,\"name\":{\"L\":\"c_credit\",\"O\":\"c_credit\"},\"offset\":13,\"origin_default\":null,\"state\":5,\"type\":{\"Charset\":\"utf8mb4\",\"Collate\":\"utf8mb4_bin\",\"Decimal\":0,\"Elems\":null,\"Flag\":0,\"Flen\":2,\"Tp\":254}},{\"comment\":\"\",\"default\":null,\"default_bit\":null,\"id\":15,\"name\":{\"L\":\"c_credit_lim\",\"O\":\"c_credit_lim\"},\"offset\":14,\"origin_default\":null,\"state\":5,\"type\":{\"Charset\":\"binary\",\"Collate\":\"binary\",\"Decimal\":2,\"Elems\":null,\"Flag\":0,\"Flen\":12,\"Tp\":246}},{\"comment\":\"\",\"default\":null,\"default_bit\":null,\"id\":16,\"name\":{\"L\":\"c_discount\",\"O\":\"c_discount\"},\"offset\":15,\"origin_default\":null,\"state\":5,\"type\":{\"Charset\":\"binary\",\"Collate\":\"binary\",\"Decimal\":4,\"Elems\":null,\"Flag\":0,\"Flen\":4,\"Tp\":246}},{\"comment\":\"\",\"default\":null,\"default_bit\":null,\"id\":17,\"name\":{\"L\":\"c_balance\",\"O\":\"c_balance\"},\"offset\":16,\"origin_default\":null,\"state\":5,\"type\":{\"Charset\":\"binary\",\"Collate\":\"binary\",\"Decimal\":2,\"Elems\":null,\"Flag\":0,\"Flen\":12,\"Tp\":246}},{\"comment\":\"\",\"default\":null,\"default_bit\":null,\"id\":18,\"name\":{\"L\":\"c_ytd_payment\",\"O\":\"c_ytd_payment\"},\"offset\":17,\"origin_default\":null,\"state\":5,\"type\":{\"Charset\":\"binary\",\"Collate\":\"binary\",\"Decimal\":2,\"Elems\":null,\"Flag\":0,\"Flen\":12,\"Tp\":246}},{\"comment\":\"\",\"default\":null,\"default_bit\":null,\"id\":19,\"name\":{\"L\":\"c_payment_cnt\",\"O\":\"c_payment_cnt\"},\"offset\":18,\"origin_default\":null,\"state\":5,\"type\":{\"Charset\":\"binary\",\"Collate\":\"binary\",\"Decimal\":0,\"Elems\":null,\"Flag\":0,\"Flen\":11,\"Tp\":3}},{\"comment\":\"\",\"default\":null,\"default_bit\":null,\"id\":20,\"name\":{\"L\":\"c_delivery_cnt\",\"O\":\"c_delivery_cnt\"},\"offset\":19,\"origin_default\":null,\"state\":5,\"type\":{\"Charset\":\"binary\",\"Collate\":\"binary\",\"Decimal\":0,\"Elems\":null,\"Flag\":0,\"Flen\":11,\"Tp\":3}},{\"comment\":\"\",\"default\":null,\"default_bit\":null,\"id\":21,\"name\":{\"L\":\"c_data\",\"O\":\"c_data\"},\"offset\":20,\"origin_default\":null,\"state\":5,\"type\":{\"Charset\":\"utf8mb4\",\"Collate\":\"utf8mb4_bin\",\"Decimal\":0,\"Elems\":null,\"Flag\":0,\"Flen\":500,\"Tp\":15}},{\"comment\":\"\",\"default\":null,\"default_bit\":null,\"id\":48,\"name\":{\"L\":\"cct_2\",\"O\":\"cct_2\"},\"offset\":21,\"origin_default\":null,\"state\":5,\"type\":{\"Charset\":\"binary\",\"Collate\":\"binary\",\"Decimal\":0,\"Elems\":null,\"Flag\":0,\"Flen\":11,\"Tp\":3}},{\"comment\":\"\",\"default\":\"CURRENT_TIMESTAMP\",\"default_bit\":null,\"id\":47,\"name\":{\"L\":\"adc_25\",\"O\":\"adc_25\"},\"offset\":22,\"origin_default\":\"2023-09-12 10:01:13\",\"state\":2,\"type\":{\"Charset\":\"binary\",\"Collate\":\"binary\",\"Decimal\":0,\"Elems\":null,\"Flag\":8320,\"Flen\":19,\"Tp\":12}}],\"comment\":\"\",\"id\":5028,\"index_info\":[],\"is_common_handle\":false,\"is_partition_sub_table\":true,\"keyspace_id\":4294967295,\"name\":{\"L\":\"t_5028\",\"O\":\"t_5028\"},\"partition\":null,\"pk_is_handle\":false,\"schema_version\":-1,\"state\":5,\"tiflash_replica\":{\"Available\":true,\"Count\":2},\"update_timestamp\":444198845243195478} => {\"belonging_table_id\":4970,\"cols\":[{\"comment\":\"\",\"default\":null,\"default_bit\":null,\"id\":1,\"name\":{\"L\":\"c_id\",\"O\":\"c_id\"},\"offset\":0,\"origin_default\":null,\"state\":5,\"type\":{\"Charset\":\"binary\",\"Collate\":\"binary\",\"Decimal\":0,\"Elems\":null,\"Flag\":4099,\"Flen\":11,\"Tp\":3}},{\"comment\":\"\",\"default\":null,\"default_bit\":null,\"id\":2,\"name\":{\"L\":\"c_d_id\",\"O\":\"c_d_id\"},\"offset\":1,\"origin_default\":null,\"state\":5,\"type\":{\"Charset\":\"binary\",\"Collate\":\"binary\",\"Decimal\":0,\"Elems\":null,\"Flag\":4099,\"Flen\":11,\"Tp\":3}},{\"comment\":\"\",\"default\":null,\"default_bit\":null,\"id\":3,\"name\":{\"L\":\"c_w_id\",\"O\":\"c_w_id\"},\"offset\":2,\"origin_default\":null,\"state\":5,\"type\":{\"Charset\":\"binary\",\"Collate\":\"binary\",\"Decimal\":0,\"Elems\":null,\"Flag\":4107,\"Flen\":11,\"Tp\":3}},{\"comment\":\"\",\"default\":null,\"default_bit\":null,\"id\":4,\"name\":{\"L\":\"c_first\",\"O\":\"c_first\"},\"offset\":3,\"origin_default\":null,\"state\":5,\"type\":{\"Charset\":\"utf8mb4\",\"Collate\":\"utf8mb4_bin\",\"Decimal\":0,\"Elems\":null,\"Flag\":0,\"Flen\":16,\"Tp\":15}},{\"comment\":\"\",\"default\":null,\"default_bit\":null,\"id\":5,\"name\":{\"L\":\"c_middle\",\"O\":\"c_middle\"},\"offset\":4,\"origin_default\":null,\"state\":5,\"type\":{\"Charset\":\"utf8mb4\",\"Collate\":\"utf8mb4_bin\",\"Decimal\":0,\"Elems\":null,\"Flag\":0,\"Flen\":2,\"Tp\":254}},{\"comment\":\"\",\"default\":null,\"default_bit\":null,\"id\":6,\"name\":{\"L\":\"c_last\",\"O\":\"c_last\"},\"offset\":5,\"origin_default\":null,\"state\":5,\"type\":{\"Charset\":\"utf8mb4\",\"Collate\":\"utf8mb4_bin\",\"Decimal\":0,\"Elems\":null,\"Flag\":0,\"Flen\":16,\"Tp\":15}},{\"comment\":\"\",\"default\":null,\"default_bit\":null,\"id\":7,\"name\":{\"L\":\"c_street_1\",\"O\":\"c_street_1\"},\"offset\":6,\"origin_default\":null,\"state\":5,\"type\":{\"Charset\":\"utf8mb4\",\"Collate\":\"utf8mb4_bin\",\"Decimal\":0,\"Elems\":null,\"Flag\":0,\"Flen\":20,\"Tp\":15}},{\"comment\":\"\",\"default\":null,\"default_bit\":null,\"id\":8,\"name\":{\"L\":\"c_street_2\",\"O\":\"c_street_2\"},\"offset\":7,\"origin_default\":null,\"state\":5,\"type\":{\"Charset\":\"utf8mb4\",\"Collate\":\"utf8mb4_bin\",\"Decimal\":0,\"Elems\":null,\"Flag\":0,\"Flen\":20,\"Tp\":15}},{\"comment\":\"\",\"default\":null,\"default_bit\":null,\"id\":9,\"name\":{\"L\":\"c_city\",\"O\":\"c_city\"},\"offset\":8,\"origin_default\":null,\"state\":5,\"type\":{\"Charset\":\"utf8mb4\",\"Collate\":\"utf8mb4_bin\",\"Decimal\":0,\"Elems\":null,\"Flag\":0,\"Flen\":20,\"Tp\":15}},{\"comment\":\"\",\"default\":null,\"default_bit\":null,\"id\":10,\"name\":{\"L\":\"c_state\",\"O\":\"c_state\"},\"offset\":9,\"origin_default\":null,\"state\":5,\"type\":{\"Charset\":\"utf8mb4\",\"Collate\":\"utf8mb4_bin\",\"Decimal\":0,\"Elems\":null,\"Flag\":0,\"Flen\":2,\"Tp\":254}},{\"comment\":\"\",\"default\":null,\"default_bit\":null,\"id\":11,\"name\":{\"L\":\"c_zip\",\"O\":\"c_zip\"},\"offset\":10,\"origin_default\":null,\"state\":5,\"type\":{\"Charset\":\"utf8mb4\",\"Collate\":\"utf8mb4_bin\",\"Decimal\":0,\"Elems\":null,\"Flag\":0,\"Flen\":9,\"Tp\":254}},{\"comment\":\"\",\"default\":null,\"default_bit\":null,\"id\":12,\"name\":{\"L\":\"c_phone\",\"O\":\"c_phone\"},\"offset\":11,\"origin_default\":null,\"state\":5,\"type\":{\"Charset\":\"utf8mb4\",\"Collate\":\"utf8mb4_bin\",\"Decimal\":0,\"Elems\":null,\"Flag\":0,\"Flen\":16,\"Tp\":254}},{\"comment\":\"\",\"default\":null,\"default_bit\":null,\"id\":13,\"name\":{\"L\":\"c_since\",\"O\":\"c_since\"},\"offset\":12,\"origin_default\":null,\"state\":5,\"type\":{\"Charset\":\"binary\",\"Collate\":\"binary\",\"Decimal\":0,\"Elems\":null,\"Flag\":128,\"Flen\":19,\"Tp\":12}},{\"comment\":\"\",\"default\":null,\"default_bit\":null,\"id\":14,\"name\":{\"L\":\"c_credit\",\"O\":\"c_credit\"},\"offset\":13,\"origin_default\":null,\"state\":5,\"type\":{\"Charset\":\"utf8mb4\",\"Collate\":\"utf8mb4_bin\",\"Decimal\":0,\"Elems\":null,\"Flag\":0,\"Flen\":2,\"Tp\":254}},{\"comment\":\"\",\"default\":null,\"default_bit\":null,\"id\":15,\"name\":{\"L\":\"c_credit_lim\",\"O\":\"c_credit_lim\"},\"offset\":14,\"origin_default\":null,\"state\":5,\"type\":{\"Charset\":\"binary\",\"Collate\":\"binary\",\"Decimal\":2,\"Elems\":null,\"Flag\":0,\"Flen\":12,\"Tp\":246}},{\"comment\":\"\",\"default\":null,\"default_bit\":null,\"id\":16,\"name\":{\"L\":\"c_discount\",\"O\":\"c_discount\"},\"offset\":15,\"origin_default\":null,\"state\":5,\"type\":{\"Charset\":\"binary\",\"Collate\":\"binary\",\"Decimal\":4,\"Elems\":null,\"Flag\":0,\"Flen\":4,\"Tp\":246}},{\"comment\":\"\",\"default\":null,\"default_bit\":null,\"id\":17,\"name\":{\"L\":\"c_balance\",\"O\":\"c_balance\"},\"offset\":16,\"origin_default\":null,\"state\":5,\"type\":{\"Charset\":\"binary\",\"Collate\":\"binary\",\"Decimal\":2,\"Elems\":null,\"Flag\":0,\"Flen\":12,\"Tp\":246}},{\"comment\":\"\",\"default\":null,\"default_bit\":null,\"id\":18,\"name\":{\"L\":\"c_ytd_payment\",\"O\":\"c_ytd_payment\"},\"offset\":17,\"origin_default\":null,\"state\":5,\"type\":{\"Charset\":\"binary\",\"Collate\":\"binary\",\"Decimal\":2,\"Elems\":null,\"Flag\":0,\"Flen\":12,\"Tp\":246}},{\"comment\":\"\",\"default\":null,\"default_bit\":null,\"id\":19,\"name\":{\"L\":\"c_payment_cnt\",\"O\":\"c_payment_cnt\"},\"offset\":18,\"origin_default\":null,\"state\":5,\"type\":{\"Charset\":\"binary\",\"Collate\":\"binary\",\"Decimal\":0,\"Elems\":null,\"Flag\":0,\"Flen\":11,\"Tp\":3}},{\"comment\":\"\",\"default\":null,\"default_bit\":null,\"id\":20,\"name\":{\"L\":\"c_delivery_cnt\",\"O\":\"c_delivery_cnt\"},\"offset\":19,\"origin_default\":null,\"state\":5,\"type\":{\"Charset\":\"binary\",\"Collate\":\"binary\",\"Decimal\":0,\"Elems\":null,\"Flag\":0,\"Flen\":11,\"Tp\":3}},{\"comment\":\"\",\"default\":null,\"default_bit\":null,\"id\":21,\"name\":{\"L\":\"c_data\",\"O\":\"c_data\"},\"offset\":20,\"origin_default\":null,\"state\":5,\"type\":{\"Charset\":\"utf8mb4\",\"Collate\":\"utf8mb4_bin\",\"Decimal\":0,\"Elems\":null,\"Flag\":0,\"Flen\":500,\"Tp\":15}},{\"comment\":\"\",\"default\":null,\"default_bit\":null,\"id\":48,\"name\":{\"L\":\"cct_2\",\"O\":\"cct_2\"},\"offset\":21,\"origin_default\":null,\"state\":5,\"type\":{\"Charset\":\"binary\",\"Collate\":\"binary\",\"Decimal\":0,\"Elems\":null,\"Flag\":0,\"Flen\":11,\"Tp\":3}},{\"comment\":\"\",\"default\":\"CURRENT_TIMESTAMP\",\"default_bit\":null,\"id\":47,\"name\":{\"L\":\"adc_25\",\"O\":\"adc_25\"},\"offset\":22,\"origin_default\":\"2023-09-12 10:01:13\",\"state\":2,\"type\":{\"Charset\":\"binary\",\"Collate\":\"binary\",\"Decimal\":0,\"Elems\":null,\"Flag\":8320,\"Flen\":19,\"Tp\":12}}],\"comment\":\"\",\"id\":5028,\"index_info\":[],\"is_common_handle\":false,\"is_partition_sub_table\":true,\"keyspace_id\":4294967295,\"name\":{\"L\":\"t_5028\",\"O\":\"t_5028\"},\"partition\":null,\"pk_is_handle\":false,\"schema_version\":-1,\"state\":5,\"tiflash_replica\":{\"Available\":true,\"Count\":2},\"update_timestamp\":444198845243195478}"] [source=db_4358.t_5028] [thread_id=50]
[2023/09/12 10:02:00.512 +08:00] [INFO] [PartitionStreams.cpp:211] ["sync schema cost 4 ms, keyspace=4294967295 table_id=5028"] [thread_id=50]
[2023/09/12 10:02:00.512 +08:00] [ERROR] [Region.cpp:956] ["[region_id=91542 applied_term=6 applied_index=94716] catch exception: Detected overflow when decoding integer of length 8 with column type Int32: pk_type is 0, schema_snapshot->sorted_column_id_with_pos is  [map info : (column_id=-1025, pos=2) (column_id=-1024, pos=1) (column_id=-1, pos=0) (column_id=1, pos=3) (column_id=2, pos=4) (column_id=3, pos=5) (column_id=4, pos=6) (column_id=5, pos=7) (column_id=6, pos=8) (column_id=7, pos=9) (column_id=8, pos=10) (column_id=9, pos=11) (column_id=10, pos=12) (column_id=11, pos=13) (column_id=12, pos=14) (column_id=13, pos=15) (column_id=14, pos=16) (column_id=15, pos=17) (column_id=16, pos=18) (column_id=17, pos=19) (column_id=18, pos=20) (column_id=19, pos=21) (column_id=20, pos=22) (column_id=21, pos=23) (column_id=47, pos=24) (column_id=48, pos=25)  ];, schema_snapshot->column_defines is  [column define : (id=-1, name=_tidb_rowid, type=Int64) (id=-1024, name=_INTERNAL_VERSION, type=UInt64) (id=-1025, name=_INTERNAL_DELMARK, type=UInt8) (id=1, name=c_id, type=Int32) (id=2, name=c_d_id, type=Int32) (id=3, name=c_w_id, type=Int32) (id=4, name=c_first, type=Nullable(String)) (id=5, name=c_middle, type=Nullable(String)) (id=6, name=c_last, type=Nullable(String)) (id=7, name=c_street_1, type=Nullable(String)) (id=8, name=c_street_2, type=Nullable(String)) (id=9, name=c_city, type=Nullable(String)) (id=10, name=c_state, type=Nullable(String)) (id=11, name=c_zip, type=Nullable(String)) (id=12, name=c_phone, type=Nullable(String)) (id=13, name=c_since, type=Nullable(MyDateTime(0))) (id=14, name=c_credit, type=Nullable(String)) (id=15, name=c_credit_lim, type=Nullable(Decimal(12,2))) (id=16, name=c_discount, type=Nullable(Decimal(4,4))) (id=17, name=c_balance, type=Nullable(Decimal(12,2))) (id=18, name=c_ytd_payment, type=Nullable(Decimal(12,2))) (id=19, name=c_payment_cnt, type=Nullable(Int32)) (id=20, name=c_delivery_cnt, type=Nullable(Int32)) (id=21, name=c_data, type=Nullable(String)) (id=47, name=adc_25, type=Nullable(MyDateTime(0))) (id=48, name=cct_2, type=Nullable(Int32))  ];, decoding_snapshot_epoch is 30, block schema is [{\"name\":\"_INTERNAL_DELMARK\",\"id\":-1025,\"type\":\"UInt8\",\"column\":\"UInt8(size = 1)\"},{\"name\":\"_INTERNAL_VERSION\",\"id\":-1024,\"type\":\"UInt64\",\"column\":\"UInt64(size = 1)\"},{\"name\":\"_tidb_rowid\",\"id\":-1,\"type\":\"Int64\",\"column\":\"Int64(size = 0)\"},{\"name\":\"c_id\",\"id\":1,\"type\":\"Int32\",\"column\":\"Int32(size = 1)\"},{\"name\":\"c_d_id\",\"id\":2,\"type\":\"Int32\",\"column\":\"Int32(size = 1)\"},{\"name\":\"c_w_id\",\"id\":3,\"type\":\"Int32\",\"column\":\"Int32(size = 1)\"},{\"name\":\"c_first\",\"id\":4,\"type\":\"Nullable(String)\",\"column\":\"Nullable(size = 1, String(size = 1), UInt8(size = 1))\"},{\"name\":\"c_middle\",\"id\":5,\"type\":\"Nullable(String)\",\"column\":\"Nullable(size = 1, String(size = 1), UInt8(size = 1))\"},{\"name\":\"c_last\",\"id\":6,\"type\":\"Nullable(String)\",\"column\":\"Nullable(size = 1, String(size = 1), UInt8(size = 1))\"},{\"name\":\"c_street_1\",\"id\":7,\"type\":\"Nullable(String)\",\"column\":\"Nullable(size = 1, String(size = 1), UInt8(size = 1))\"},{\"name\":\"c_street_2\",\"id\":8,\"type\":\"Nullable(String)\",\"column\":\"Nullable(size = 1, String(size = 1), UInt8(size = 1))\"},{\"name\":\"c_city\",\"id\":9,\"type\":\"Nullable(String)\",\"column\":\"Nullable(size = 1, String(size = 1), UInt8(size = 1))\"},{\"name\":\"c_state\",\"id\":10,\"type\":\"Nullable(String)\",\"column\":\"Nullable(size = 1, String(size = 1), UInt8(size = 1))\"},{\"name\":\"c_zip\",\"id\":11,\"type\":\"Nullable(String)\",\"column\":\"Nullable(size = 1, String(size = 1), UInt8(size = 1))\"},{\"name\":\"c_phone\",\"id\":12,\"type\":\"Nullable(String)\",\"column\":\"Nullable(size = 1, String(size = 1), UInt8(size = 1))\"},{\"name\":\"c_since\",\"id\":13,\"type\":\"Nullable(MyDateTime(0))\",\"column\":\"Nullable(size = 1, UInt64(size = 1), UInt8(size = 1))\"},{\"name\":\"c_credit\",\"id\":14,\"type\":\"Nullable(String)\",\"column\":\"Nullable(size = 1, String(size = 1), UInt8(size = 1))\"},{\"name\":\"c_credit_lim\",\"id\":15,\"type\":\"Nullable(Decimal(12,2))\",\"column\":\"Nullable(size = 1, Decimal64(size = 1), UInt8(size = 1))\"},{\"name\":\"c_discount\",\"id\":16,\"type\":\"Nullable(Decimal(4,4))\",\"column\":\"Nullable(size = 1, Decimal32(size = 1), UInt8(size = 1))\"},{\"name\":\"c_balance\",\"id\":17,\"type\":\"Nullable(Decimal(12,2))\",\"column\":\"Nullable(size = 1, Decimal64(size = 1), UInt8(size = 1))\"},{\"name\":\"c_ytd_payment\",\"id\":18,\"type\":\"Nullable(Decimal(12,2))\",\"column\":\"Nullable(size = 1, Decimal64(size = 1), UInt8(size = 1))\"},{\"name\":\"c_payment_cnt\",\"id\":19,\"type\":\"Nullable(Int32)\",\"column\":\"Nullable(size = 1, Int32(size = 1), UInt8(size = 1))\"},{\"name\":\"c_delivery_cnt\",\"id\":20,\"type\":\"Nullable(Int32)\",\"column\":\"Nullable(size = 1, Int32(size = 1), UInt8(size = 1))\"},{\"name\":\"c_data\",\"id\":21,\"type\":\"Nullable(String)\",\"column\":\"Nullable(size = 1, String(size = 1), UInt8(size = 1))\"},{\"name\":\"adc_25\",\"id\":47,\"type\":\"Nullable(MyDateTime(0))\",\"column\":\"Nullable(size = 1, UInt64(size = 1), UInt8(size = 1))\"},{\"name\":\"cct_2\",\"id\":48,\"type\":\"Nullable(Int32)\",\"column\":\"Nullable(size = 0, Int32(size = 0), UInt8(size = 0))\"}] : TiKV value contains: : 8000160001000102030405060708090A0B0C0D0E0F101112131415302F020003000500120014001F002C003C004D004F0058006800700072007A007E0086008E008F00900067026F020B0A0691024A39644642654253754670617A4F454154494F4E4241524553454B677351733239595A347A723063623056416D7A4474755A535562754A5131727369366762376D646555526A4A52575034383132313131313138343534323438333738383333323630000000E0D48CAC1947430C02800000C35000040488E80C027FFFFFE679F40C0280000019860B0300633732627831477346475549356D356F70596C6E57553062414F7556424E6E784D44624A366269354B7245455437564A6948496476715068366E4A5872383571394759794E73384875574B3349643369374F717A68774F793363456F454659644634684F7462624D356B436C786F386452795A7055767178687967326B363774335561686B4F455155506E59776F6C4D4E4E71454263756B57474D414A553031514B427669756F3464504271706E5A624D72736D6B7042764B576C4E565339416A727A46307079324C746F7152303052546468374C544F48396E437670306B6F4E4344793978436B766E47616F465735717465304F444C4E4E4B37534A70426D6F4F4E547947694C5879443334437530595A3745536479666E596E435471477565674C475779547A786B35384867623068367976626B6F444F645952786157337A4330794476684967626F7972627939624F644B4334784C426D486269676749366B383662643658505163316B30734B786E734947397636434E34506546424B394B7465686973564952757056515A4F5472745152534D6650524254376D46316C685844377953496D594C73306D61434C5979665070454E306364436D7A6F353677413063504C356D303842547779734249595A5070730000004DA018B119, , while applying `RegionTable::writeBlockByRegion` on [term 6, index 94717], entries PUT|write|7480000000000013FFA45F728000000001FF31D0DA0000000000FAF9D5E380F2DBFFBF:DEL|lock|7480000000000013FFA45F728000000001FF31D0DA0000000000FA"] [thread_id=50]

the table JSON from TiKV

{
	"id": 4970,
	"name": {
		"O": "customer",
		"L": "customer"
	},
	"charset": "utf8mb4",
	"collate": "utf8mb4_bin",
	"cols": [{
		"id": 1,
		"name": {
			"O": "c_id",
			"L": "c_id"
		},
		"offset": 0,
		"origin_default": null,
		"origin_default_bit": null,
		"default": null,
		"default_bit": null,
		"default_is_expr": false,
		"generated_expr_string": "",
		"generated_stored": false,
		"dependences": null,
		"type": {
			"Tp": 3,
			"Flag": 4099,
			"Flen": 11,
			"Decimal": 0,
			"Charset": "binary",
			"Collate": "binary",
			"Elems": null,
			"ElemsIsBinaryLit": null,
			"Array": false
		},
		"state": 5,
		"comment": "",
		"hidden": false,
		"change_state_info": null,
		"version": 2
	}, {
		"id": 2,
		"name": {
			"O": "c_d_id",
			"L": "c_d_id"
		},
		"offset": 1,
		"origin_default": null,
		"origin_default_bit": null,
		"default": null,
		"default_bit": null,
		"default_is_expr": false,
		"generated_expr_string": "",
		"generated_stored": false,
		"dependences": null,
		"type": {
			"Tp": 3,
			"Flag": 4099,
			"Flen": 11,
			"Decimal": 0,
			"Charset": "binary",
			"Collate": "binary",
			"Elems": null,
			"ElemsIsBinaryLit": null,
			"Array": false
		},
		"state": 5,
		"comment": "",
		"hidden": false,
		"change_state_info": null,
		"version": 2
	}, {
		"id": 3,
		"name": {
			"O": "c_w_id",
			"L": "c_w_id"
		},
		"offset": 2,
		"origin_default": null,
		"origin_default_bit": null,
		"default": null,
		"default_bit": null,
		"default_is_expr": false,
		"generated_expr_string": "",
		"generated_stored": false,
		"dependences": null,
		"type": {
			"Tp": 3,
			"Flag": 4107,
			"Flen": 11,
			"Decimal": 0,
			"Charset": "binary",
			"Collate": "binary",
			"Elems": null,
			"ElemsIsBinaryLit": null,
			"Array": false
		},
		"state": 5,
		"comment": "",
		"hidden": false,
		"change_state_info": null,
		"version": 2
	}, {
		"id": 4,
		"name": {
			"O": "c_first",
			"L": "c_first"
		},
		"offset": 3,
		"origin_default": null,
		"origin_default_bit": null,
		"default": null,
		"default_bit": null,
		"default_is_expr": false,
		"generated_expr_string": "",
		"generated_stored": false,
		"dependences": null,
		"type": {
			"Tp": 15,
			"Flag": 0,
			"Flen": 16,
			"Decimal": 0,
			"Charset": "utf8mb4",
			"Collate": "utf8mb4_bin",
			"Elems": null,
			"ElemsIsBinaryLit": null,
			"Array": false
		},
		"state": 5,
		"comment": "",
		"hidden": false,
		"change_state_info": null,
		"version": 2
	}, {
		"id": 5,
		"name": {
			"O": "c_middle",
			"L": "c_middle"
		},
		"offset": 4,
		"origin_default": null,
		"origin_default_bit": null,
		"default": null,
		"default_bit": null,
		"default_is_expr": false,
		"generated_expr_string": "",
		"generated_stored": false,
		"dependences": null,
		"type": {
			"Tp": 254,
			"Flag": 0,
			"Flen": 2,
			"Decimal": 0,
			"Charset": "utf8mb4",
			"Collate": "utf8mb4_bin",
			"Elems": null,
			"ElemsIsBinaryLit": null,
			"Array": false
		},
		"state": 5,
		"comment": "",
		"hidden": false,
		"change_state_info": null,
		"version": 2
	}, {
		"id": 6,
		"name": {
			"O": "c_last",
			"L": "c_last"
		},
		"offset": 5,
		"origin_default": null,
		"origin_default_bit": null,
		"default": null,
		"default_bit": null,
		"default_is_expr": false,
		"generated_expr_string": "",
		"generated_stored": false,
		"dependences": null,
		"type": {
			"Tp": 15,
			"Flag": 0,
			"Flen": 16,
			"Decimal": 0,
			"Charset": "utf8mb4",
			"Collate": "utf8mb4_bin",
			"Elems": null,
			"ElemsIsBinaryLit": null,
			"Array": false
		},
		"state": 5,
		"comment": "",
		"hidden": false,
		"change_state_info": null,
		"version": 2
	}, {
		"id": 7,
		"name": {
			"O": "c_street_1",
			"L": "c_street_1"
		},
		"offset": 6,
		"origin_default": null,
		"origin_default_bit": null,
		"default": null,
		"default_bit": null,
		"default_is_expr": false,
		"generated_expr_string": "",
		"generated_stored": false,
		"dependences": null,
		"type": {
			"Tp": 15,
			"Flag": 0,
			"Flen": 20,
			"Decimal": 0,
			"Charset": "utf8mb4",
			"Collate": "utf8mb4_bin",
			"Elems": null,
			"ElemsIsBinaryLit": null,
			"Array": false
		},
		"state": 5,
		"comment": "",
		"hidden": false,
		"change_state_info": null,
		"version": 2
	}, {
		"id": 8,
		"name": {
			"O": "c_street_2",
			"L": "c_street_2"
		},
		"offset": 7,
		"origin_default": null,
		"origin_default_bit": null,
		"default": null,
		"default_bit": null,
		"default_is_expr": false,
		"generated_expr_string": "",
		"generated_stored": false,
		"dependences": null,
		"type": {
			"Tp": 15,
			"Flag": 0,
			"Flen": 20,
			"Decimal": 0,
			"Charset": "utf8mb4",
			"Collate": "utf8mb4_bin",
			"Elems": null,
			"ElemsIsBinaryLit": null,
			"Array": false
		},
		"state": 5,
		"comment": "",
		"hidden": false,
		"change_state_info": null,
		"version": 2
	}, {
		"id": 9,
		"name": {
			"O": "c_city",
			"L": "c_city"
		},
		"offset": 8,
		"origin_default": null,
		"origin_default_bit": null,
		"default": null,
		"default_bit": null,
		"default_is_expr": false,
		"generated_expr_string": "",
		"generated_stored": false,
		"dependences": null,
		"type": {
			"Tp": 15,
			"Flag": 0,
			"Flen": 20,
			"Decimal": 0,
			"Charset": "utf8mb4",
			"Collate": "utf8mb4_bin",
			"Elems": null,
			"ElemsIsBinaryLit": null,
			"Array": false
		},
		"state": 5,
		"comment": "",
		"hidden": false,
		"change_state_info": null,
		"version": 2
	}, {
		"id": 10,
		"name": {
			"O": "c_state",
			"L": "c_state"
		},
		"offset": 9,
		"origin_default": null,
		"origin_default_bit": null,
		"default": null,
		"default_bit": null,
		"default_is_expr": false,
		"generated_expr_string": "",
		"generated_stored": false,
		"dependences": null,
		"type": {
			"Tp": 254,
			"Flag": 0,
			"Flen": 2,
			"Decimal": 0,
			"Charset": "utf8mb4",
			"Collate": "utf8mb4_bin",
			"Elems": null,
			"ElemsIsBinaryLit": null,
			"Array": false
		},
		"state": 5,
		"comment": "",
		"hidden": false,
		"change_state_info": null,
		"version": 2
	}, {
		"id": 11,
		"name": {
			"O": "c_zip",
			"L": "c_zip"
		},
		"offset": 10,
		"origin_default": null,
		"origin_default_bit": null,
		"default": null,
		"default_bit": null,
		"default_is_expr": false,
		"generated_expr_string": "",
		"generated_stored": false,
		"dependences": null,
		"type": {
			"Tp": 254,
			"Flag": 0,
			"Flen": 9,
			"Decimal": 0,
			"Charset": "utf8mb4",
			"Collate": "utf8mb4_bin",
			"Elems": null,
			"ElemsIsBinaryLit": null,
			"Array": false
		},
		"state": 5,
		"comment": "",
		"hidden": false,
		"change_state_info": null,
		"version": 2
	}, {
		"id": 12,
		"name": {
			"O": "c_phone",
			"L": "c_phone"
		},
		"offset": 11,
		"origin_default": null,
		"origin_default_bit": null,
		"default": null,
		"default_bit": null,
		"default_is_expr": false,
		"generated_expr_string": "",
		"generated_stored": false,
		"dependences": null,
		"type": {
			"Tp": 254,
			"Flag": 0,
			"Flen": 16,
			"Decimal": 0,
			"Charset": "utf8mb4",
			"Collate": "utf8mb4_bin",
			"Elems": null,
			"ElemsIsBinaryLit": null,
			"Array": false
		},
		"state": 5,
		"comment": "",
		"hidden": false,
		"change_state_info": null,
		"version": 2
	}, {
		"id": 13,
		"name": {
			"O": "c_since",
			"L": "c_since"
		},
		"offset": 12,
		"origin_default": null,
		"origin_default_bit": null,
		"default": null,
		"default_bit": null,
		"default_is_expr": false,
		"generated_expr_string": "",
		"generated_stored": false,
		"dependences": null,
		"type": {
			"Tp": 12,
			"Flag": 128,
			"Flen": 19,
			"Decimal": 0,
			"Charset": "binary",
			"Collate": "binary",
			"Elems": null,
			"ElemsIsBinaryLit": null,
			"Array": false
		},
		"state": 5,
		"comment": "",
		"hidden": false,
		"change_state_info": null,
		"version": 2
	}, {
		"id": 14,
		"name": {
			"O": "c_credit",
			"L": "c_credit"
		},
		"offset": 13,
		"origin_default": null,
		"origin_default_bit": null,
		"default": null,
		"default_bit": null,
		"default_is_expr": false,
		"generated_expr_string": "",
		"generated_stored": false,
		"dependences": null,
		"type": {
			"Tp": 254,
			"Flag": 0,
			"Flen": 2,
			"Decimal": 0,
			"Charset": "utf8mb4",
			"Collate": "utf8mb4_bin",
			"Elems": null,
			"ElemsIsBinaryLit": null,
			"Array": false
		},
		"state": 5,
		"comment": "",
		"hidden": false,
		"change_state_info": null,
		"version": 2
	}, {
		"id": 15,
		"name": {
			"O": "c_credit_lim",
			"L": "c_credit_lim"
		},
		"offset": 14,
		"origin_default": null,
		"origin_default_bit": null,
		"default": null,
		"default_bit": null,
		"default_is_expr": false,
		"generated_expr_string": "",
		"generated_stored": false,
		"dependences": null,
		"type": {
			"Tp": 246,
			"Flag": 0,
			"Flen": 12,
			"Decimal": 2,
			"Charset": "binary",
			"Collate": "binary",
			"Elems": null,
			"ElemsIsBinaryLit": null,
			"Array": false
		},
		"state": 5,
		"comment": "",
		"hidden": false,
		"change_state_info": null,
		"version": 2
	}, {
		"id": 16,
		"name": {
			"O": "c_discount",
			"L": "c_discount"
		},
		"offset": 15,
		"origin_default": null,
		"origin_default_bit": null,
		"default": null,
		"default_bit": null,
		"default_is_expr": false,
		"generated_expr_string": "",
		"generated_stored": false,
		"dependences": null,
		"type": {
			"Tp": 246,
			"Flag": 0,
			"Flen": 4,
			"Decimal": 4,
			"Charset": "binary",
			"Collate": "binary",
			"Elems": null,
			"ElemsIsBinaryLit": null,
			"Array": false
		},
		"state": 5,
		"comment": "",
		"hidden": false,
		"change_state_info": null,
		"version": 2
	}, {
		"id": 17,
		"name": {
			"O": "c_balance",
			"L": "c_balance"
		},
		"offset": 16,
		"origin_default": null,
		"origin_default_bit": null,
		"default": null,
		"default_bit": null,
		"default_is_expr": false,
		"generated_expr_string": "",
		"generated_stored": false,
		"dependences": null,
		"type": {
			"Tp": 246,
			"Flag": 0,
			"Flen": 12,
			"Decimal": 2,
			"Charset": "binary",
			"Collate": "binary",
			"Elems": null,
			"ElemsIsBinaryLit": null,
			"Array": false
		},
		"state": 5,
		"comment": "",
		"hidden": false,
		"change_state_info": null,
		"version": 2
	}, {
		"id": 18,
		"name": {
			"O": "c_ytd_payment",
			"L": "c_ytd_payment"
		},
		"offset": 17,
		"origin_default": null,
		"origin_default_bit": null,
		"default": null,
		"default_bit": null,
		"default_is_expr": false,
		"generated_expr_string": "",
		"generated_stored": false,
		"dependences": null,
		"type": {
			"Tp": 246,
			"Flag": 0,
			"Flen": 12,
			"Decimal": 2,
			"Charset": "binary",
			"Collate": "binary",
			"Elems": null,
			"ElemsIsBinaryLit": null,
			"Array": false
		},
		"state": 5,
		"comment": "",
		"hidden": false,
		"change_state_info": null,
		"version": 2
	}, {
		"id": 19,
		"name": {
			"O": "c_payment_cnt",
			"L": "c_payment_cnt"
		},
		"offset": 18,
		"origin_default": null,
		"origin_default_bit": null,
		"default": null,
		"default_bit": null,
		"default_is_expr": false,
		"generated_expr_string": "",
		"generated_stored": false,
		"dependences": null,
		"type": {
			"Tp": 3,
			"Flag": 0,
			"Flen": 11,
			"Decimal": 0,
			"Charset": "binary",
			"Collate": "binary",
			"Elems": null,
			"ElemsIsBinaryLit": null,
			"Array": false
		},
		"state": 5,
		"comment": "",
		"hidden": false,
		"change_state_info": null,
		"version": 2
	}, {
		"id": 20,
		"name": {
			"O": "c_delivery_cnt",
			"L": "c_delivery_cnt"
		},
		"offset": 19,
		"origin_default": null,
		"origin_default_bit": null,
		"default": null,
		"default_bit": null,
		"default_is_expr": false,
		"generated_expr_string": "",
		"generated_stored": false,
		"dependences": null,
		"type": {
			"Tp": 3,
			"Flag": 0,
			"Flen": 11,
			"Decimal": 0,
			"Charset": "binary",
			"Collate": "binary",
			"Elems": null,
			"ElemsIsBinaryLit": null,
			"Array": false
		},
		"state": 5,
		"comment": "",
		"hidden": false,
		"change_state_info": null,
		"version": 2
	}, {
		"id": 21,
		"name": {
			"O": "c_data",
			"L": "c_data"
		},
		"offset": 20,
		"origin_default": null,
		"origin_default_bit": null,
		"default": null,
		"default_bit": null,
		"default_is_expr": false,
		"generated_expr_string": "",
		"generated_stored": false,
		"dependences": null,
		"type": {
			"Tp": 15,
			"Flag": 0,
			"Flen": 500,
			"Decimal": 0,
			"Charset": "utf8mb4",
			"Collate": "utf8mb4_bin",
			"Elems": null,
			"ElemsIsBinaryLit": null,
			"Array": false
		},
		"state": 5,
		"comment": "",
		"hidden": false,
		"change_state_info": null,
		"version": 2
	}, {
		"id": 48,
		"name": {
			"O": "cct_2",
			"L": "cct_2"
		},
		"offset": 21,
		"origin_default": null,
		"origin_default_bit": null,
		"default": null,
		"default_bit": null,
		"default_is_expr": false,
		"generated_expr_string": "",
		"generated_stored": false,
		"dependences": null,
		"type": {
			"Tp": 3,
			"Flag": 0,
			"Flen": 11,
			"Decimal": 0,
			"Charset": "binary",
			"Collate": "binary",
			"Elems": null,
			"ElemsIsBinaryLit": null,
			"Array": false
		},
		"state": 5,
		"comment": "",
		"hidden": false,
		"change_state_info": null,
		"version": 2
	}, {
		"id": 47,
		"name": {
			"O": "adc_25",
			"L": "adc_25"
		},
		"offset": 22,
		"origin_default": "2023-09-12 10:01:13",
		"origin_default_bit": null,
		"default": "CURRENT_TIMESTAMP",
		"default_bit": null,
		"default_is_expr": false,
		"generated_expr_string": "",
		"generated_stored": false,
		"dependences": null,
		"type": {
			"Tp": 12,
			"Flag": 8320,
			"Flen": 19,
			"Decimal": 0,
			"Charset": "binary",
			"Collate": "binary",
			"Elems": null,
			"ElemsIsBinaryLit": null,
			"Array": false
		},
		"state": 2,
		"comment": "",
		"hidden": false,
		"change_state_info": null,
		"version": 2
	}],
	"index_info": [{
		"id": 1,
		"idx_name": {
			"O": "PRIMARY",
			"L": "primary"
		},
		"tbl_name": {
			"O": "",
			"L": ""
		},
		"idx_cols": [{
			"name": {
				"O": "c_w_id",
				"L": "c_w_id"
			},
			"offset": 2,
			"length": -1
		}, {
			"name": {
				"O": "c_d_id",
				"L": "c_d_id"
			},
			"offset": 1,
			"length": -1
		}, {
			"name": {
				"O": "c_id",
				"L": "c_id"
			},
			"offset": 0,
			"length": -1
		}],
		"state": 5,
		"backfill_state": 0,
		"comment": "",
		"index_type": 1,
		"is_unique": true,
		"is_primary": true,
		"is_invisible": false,
		"is_global": false,
		"mv_index": false
	}, {
		"id": 2,
		"idx_name": {
			"O": "idx_customer",
			"L": "idx_customer"
		},
		"tbl_name": {
			"O": "",
			"L": ""
		},
		"idx_cols": [{
			"name": {
				"O": "c_w_id",
				"L": "c_w_id"
			},
			"offset": 2,
			"length": -1
		}, {
			"name": {
				"O": "c_d_id",
				"L": "c_d_id"
			},
			"offset": 1,
			"length": -1
		}, {
			"name": {
				"O": "c_last",
				"L": "c_last"
			},
			"offset": 5,
			"length": -1
		}, {
			"name": {
				"O": "c_first",
				"L": "c_first"
			},
			"offset": 3,
			"length": -1
		}],
		"state": 5,
		"backfill_state": 0,
		"comment": "",
		"index_type": 1,
		"is_unique": false,
		"is_primary": false,
		"is_invisible": false,
		"is_global": false,
		"mv_index": false
	}],
	"constraint_info": null,
	"fk_info": [],
	"state": 5,
	"pk_is_handle": false,
	"is_common_handle": false,
	"common_handle_version": 0,
	"comment": "",
	"auto_inc_id": 30207016,
	"auto_id_cache": 0,
	"auto_rand_id": 0,
	"max_col_id": 48,
	"max_idx_id": 2,
	"max_fk_id": 0,
	"max_cst_id": 0,
	"update_timestamp": 444198845243195478,
	"ShardRowIDBits": 0,
	"max_shard_row_id_bits": 0,
	"auto_random_bits": 0,
	"auto_random_range_bits": 0,
	"pre_split_regions": 0,
	"partition": {
		"type": 2,
		"expr": "`c_w_id`",
		"columns": [],
		"enable": true,
		"definitions": [{
			"id": 4971,
			"name": {
				"O": "p0",
				"L": "p0"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 4972,
			"name": {
				"O": "p1",
				"L": "p1"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 4973,
			"name": {
				"O": "p2",
				"L": "p2"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 4974,
			"name": {
				"O": "p3",
				"L": "p3"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 4975,
			"name": {
				"O": "p4",
				"L": "p4"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 4976,
			"name": {
				"O": "p5",
				"L": "p5"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 4977,
			"name": {
				"O": "p6",
				"L": "p6"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 4978,
			"name": {
				"O": "p7",
				"L": "p7"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 4979,
			"name": {
				"O": "p8",
				"L": "p8"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 4980,
			"name": {
				"O": "p9",
				"L": "p9"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 4981,
			"name": {
				"O": "p10",
				"L": "p10"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 4982,
			"name": {
				"O": "p11",
				"L": "p11"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 4983,
			"name": {
				"O": "p12",
				"L": "p12"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 4984,
			"name": {
				"O": "p13",
				"L": "p13"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 4985,
			"name": {
				"O": "p14",
				"L": "p14"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 4986,
			"name": {
				"O": "p15",
				"L": "p15"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 4987,
			"name": {
				"O": "p16",
				"L": "p16"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 4988,
			"name": {
				"O": "p17",
				"L": "p17"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 4989,
			"name": {
				"O": "p18",
				"L": "p18"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 4990,
			"name": {
				"O": "p19",
				"L": "p19"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 4991,
			"name": {
				"O": "p20",
				"L": "p20"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 4992,
			"name": {
				"O": "p21",
				"L": "p21"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 4993,
			"name": {
				"O": "p22",
				"L": "p22"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 4994,
			"name": {
				"O": "p23",
				"L": "p23"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 4995,
			"name": {
				"O": "p24",
				"L": "p24"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 4996,
			"name": {
				"O": "p25",
				"L": "p25"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 4997,
			"name": {
				"O": "p26",
				"L": "p26"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 4998,
			"name": {
				"O": "p27",
				"L": "p27"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 4999,
			"name": {
				"O": "p28",
				"L": "p28"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5000,
			"name": {
				"O": "p29",
				"L": "p29"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5001,
			"name": {
				"O": "p30",
				"L": "p30"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5002,
			"name": {
				"O": "p31",
				"L": "p31"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5003,
			"name": {
				"O": "p32",
				"L": "p32"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5004,
			"name": {
				"O": "p33",
				"L": "p33"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5005,
			"name": {
				"O": "p34",
				"L": "p34"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5006,
			"name": {
				"O": "p35",
				"L": "p35"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5007,
			"name": {
				"O": "p36",
				"L": "p36"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5008,
			"name": {
				"O": "p37",
				"L": "p37"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5009,
			"name": {
				"O": "p38",
				"L": "p38"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5010,
			"name": {
				"O": "p39",
				"L": "p39"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5011,
			"name": {
				"O": "p40",
				"L": "p40"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5012,
			"name": {
				"O": "p41",
				"L": "p41"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5013,
			"name": {
				"O": "p42",
				"L": "p42"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5014,
			"name": {
				"O": "p43",
				"L": "p43"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5015,
			"name": {
				"O": "p44",
				"L": "p44"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5016,
			"name": {
				"O": "p45",
				"L": "p45"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5017,
			"name": {
				"O": "p46",
				"L": "p46"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5018,
			"name": {
				"O": "p47",
				"L": "p47"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5019,
			"name": {
				"O": "p48",
				"L": "p48"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5020,
			"name": {
				"O": "p49",
				"L": "p49"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5021,
			"name": {
				"O": "p50",
				"L": "p50"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5022,
			"name": {
				"O": "p51",
				"L": "p51"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5023,
			"name": {
				"O": "p52",
				"L": "p52"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5024,
			"name": {
				"O": "p53",
				"L": "p53"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5025,
			"name": {
				"O": "p54",
				"L": "p54"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5026,
			"name": {
				"O": "p55",
				"L": "p55"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5027,
			"name": {
				"O": "p56",
				"L": "p56"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5028,
			"name": {
				"O": "p57",
				"L": "p57"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5029,
			"name": {
				"O": "p58",
				"L": "p58"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5030,
			"name": {
				"O": "p59",
				"L": "p59"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5031,
			"name": {
				"O": "p60",
				"L": "p60"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5032,
			"name": {
				"O": "p61",
				"L": "p61"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5033,
			"name": {
				"O": "p62",
				"L": "p62"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5034,
			"name": {
				"O": "p63",
				"L": "p63"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5035,
			"name": {
				"O": "p64",
				"L": "p64"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5036,
			"name": {
				"O": "p65",
				"L": "p65"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5037,
			"name": {
				"O": "p66",
				"L": "p66"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5038,
			"name": {
				"O": "p67",
				"L": "p67"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5039,
			"name": {
				"O": "p68",
				"L": "p68"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5040,
			"name": {
				"O": "p69",
				"L": "p69"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5041,
			"name": {
				"O": "p70",
				"L": "p70"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5042,
			"name": {
				"O": "p71",
				"L": "p71"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5043,
			"name": {
				"O": "p72",
				"L": "p72"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5044,
			"name": {
				"O": "p73",
				"L": "p73"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5045,
			"name": {
				"O": "p74",
				"L": "p74"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5046,
			"name": {
				"O": "p75",
				"L": "p75"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5047,
			"name": {
				"O": "p76",
				"L": "p76"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5048,
			"name": {
				"O": "p77",
				"L": "p77"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5049,
			"name": {
				"O": "p78",
				"L": "p78"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5050,
			"name": {
				"O": "p79",
				"L": "p79"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5051,
			"name": {
				"O": "p80",
				"L": "p80"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5052,
			"name": {
				"O": "p81",
				"L": "p81"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5053,
			"name": {
				"O": "p82",
				"L": "p82"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5054,
			"name": {
				"O": "p83",
				"L": "p83"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5055,
			"name": {
				"O": "p84",
				"L": "p84"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5056,
			"name": {
				"O": "p85",
				"L": "p85"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5057,
			"name": {
				"O": "p86",
				"L": "p86"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5058,
			"name": {
				"O": "p87",
				"L": "p87"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5059,
			"name": {
				"O": "p88",
				"L": "p88"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5060,
			"name": {
				"O": "p89",
				"L": "p89"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5061,
			"name": {
				"O": "p90",
				"L": "p90"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5062,
			"name": {
				"O": "p91",
				"L": "p91"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5063,
			"name": {
				"O": "p92",
				"L": "p92"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5064,
			"name": {
				"O": "p93",
				"L": "p93"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5065,
			"name": {
				"O": "p94",
				"L": "p94"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5066,
			"name": {
				"O": "p95",
				"L": "p95"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5067,
			"name": {
				"O": "p96",
				"L": "p96"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5068,
			"name": {
				"O": "p97",
				"L": "p97"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5069,
			"name": {
				"O": "p98",
				"L": "p98"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}, {
			"id": 5070,
			"name": {
				"O": "p99",
				"L": "p99"
			},
			"less_than": [],
			"in_values": null,
			"policy_ref_info": null
		}],
		"adding_definitions": [],
		"dropping_definitions": [],
		"NewPartitionIDs": null,
		"states": null,
		"num": 100,
		"ddl_state": 0,
		"new_table_id": 0,
		"ddl_type": 0,
		"ddl_expr": "",
		"ddl_columns": null
	},
	"compression": "",
	"view": null,
	"sequence": null,
	"Lock": null,
	"version": 3,
	"tiflash_replica": {
		"Count": 2,
		"LocationLabels": [],
		"Available": true,
		"AvailablePartitionIDs": [4987, 5033, 4985, 4988, 5007, 5032, 5034, 5030, 5059, 5031, 5029, 5049, 5028, 4974, 5012, 5006, 5011, 5013, 5050, 5061, 5024, 5046, 5047, 4984, 4989, 4990, 5045, 4979, 4986, 5036, 5038, 5039, 4996, 5040, 4983, 5043, 5017, 5010, 5016, 5052, 5018, 5019, 5008, 5065, 5009, 5014, 5015, 5020, 5026, 5042, 5044, 5069, 4972, 4995, 4997, 4998, 5023, 5025, 5041, 5053, 5054, 4973, 4981, 4999, 5000, 5001, 5048, 4978, 5051, 5002, 5003, 5066, 4991, 5055, 4982, 5022, 5056, 5064, 4971, 4975, 4976, 4977, 4980, 4993, 5037, 5058, 4992, 4994, 5004, 5021, 5005, 5027, 5035, 5057, 5060, 5062, 5063, 5067, 5068, 5070]
	}
}

the ddl for customer

[2023/09/12 06:52:44.448 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=1777] [cur_db=tpcc] [sql="alter table customer drop column adc_1"] [user=root@%]
[2023/09/12 06:52:44.449 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=1777] [cur_db=tpcc] [sql="alter table customer add column adc_1 mediumblob"] [user=root@%]
[2023/09/12 06:53:19.056 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=1781] [cur_db=tpcc] [sql="alter table customer drop column adc_1"] [user=root@%]
[2023/09/12 06:59:32.234 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=1873] [cur_db=tpcc] [sql="alter table customer drop column adc_2"] [user=root@%]
[2023/09/12 06:59:32.235 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=1873] [cur_db=tpcc] [sql="alter table customer add column adc_2 float"] [user=root@%]
[2023/09/12 07:00:04.932 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=1877] [cur_db=tpcc] [sql="alter table customer drop column adc_2"] [user=root@%]
[2023/09/12 07:07:02.341 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=1969] [cur_db=tpcc] [sql="alter table customer drop column adc_3"] [user=root@%]
[2023/09/12 07:07:02.342 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=1969] [cur_db=tpcc] [sql="alter table customer add column adc_3 longblob"] [user=root@%]
[2023/09/12 07:07:34.697 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=1973] [cur_db=tpcc] [sql="alter table customer drop column adc_3"] [user=root@%]
[2023/09/12 07:14:40.819 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=2065] [cur_db=tpcc] [sql="alter table customer drop column adc_4"] [user=root@%]
[2023/09/12 07:14:40.821 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=2065] [cur_db=tpcc] [sql="alter table customer add column adc_4 int unsigned"] [user=root@%]
[2023/09/12 07:15:14.698 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=2069] [cur_db=tpcc] [sql="alter table customer drop column adc_4"] [user=root@%]
[2023/09/12 07:22:22.401 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=2161] [cur_db=tpcc] [sql="alter table customer drop column adc_5"] [user=root@%]
[2023/09/12 07:22:22.402 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=2161] [cur_db=tpcc] [sql="alter table customer add column adc_5 datetime(6)"] [user=root@%]
[2023/09/12 07:22:56.214 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=2165] [cur_db=tpcc] [sql="alter table customer drop column adc_5"] [user=root@%]
[2023/09/12 07:30:12.770 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=2257] [cur_db=tpcc] [sql="alter table customer drop column adc_6"] [user=root@%]
[2023/09/12 07:30:12.771 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=2257] [cur_db=tpcc] [sql="alter table customer add column adc_6 tinyblob"] [user=root@%]
[2023/09/12 07:30:45.534 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=2261] [cur_db=tpcc] [sql="alter table customer drop column adc_6"] [user=root@%]
[2023/09/12 07:37:48.842 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=2353] [cur_db=tpcc] [sql="alter table customer drop column adc_7"] [user=root@%]
[2023/09/12 07:37:48.843 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=2353] [cur_db=tpcc] [sql="alter table customer add column adc_7 tinyblob"] [user=root@%]
[2023/09/12 07:38:21.289 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=2357] [cur_db=tpcc] [sql="alter table customer drop column adc_7"] [user=root@%]
[2023/09/12 07:45:30.541 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=2449] [cur_db=tpcc] [sql="alter table customer drop column adc_8"] [user=root@%]
[2023/09/12 07:45:30.542 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=2449] [cur_db=tpcc] [sql="alter table customer add column adc_8 timestamp default current_timestamp on Update current_timestamp"] [user=root@%]
[2023/09/12 07:46:03.711 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=2453] [cur_db=tpcc] [sql="alter table customer drop column adc_8"] [user=root@%]
[2023/09/12 07:53:16.155 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=2545] [cur_db=tpcc] [sql="alter table customer drop column adc_9"] [user=root@%]
[2023/09/12 07:53:16.156 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=2545] [cur_db=tpcc] [sql="alter table customer add column adc_9 tinytext"] [user=root@%]
[2023/09/12 07:53:48.922 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=2549] [cur_db=tpcc] [sql="alter table customer drop column adc_9"] [user=root@%]
[2023/09/12 08:00:57.807 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=2641] [cur_db=tpcc] [sql="alter table customer drop column adc_10"] [user=root@%]
[2023/09/12 08:00:57.812 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=2641] [cur_db=tpcc] [sql="alter table customer add column adc_10 text"] [user=root@%]
[2023/09/12 08:01:31.095 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=2645] [cur_db=tpcc] [sql="alter table customer drop column adc_10"] [user=root@%]
[2023/09/12 08:08:46.375 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=2737] [cur_db=tpcc] [sql="alter table customer drop column adc_11"] [user=root@%]
[2023/09/12 08:08:46.376 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=2737] [cur_db=tpcc] [sql="alter table customer add column adc_11 blob"] [user=root@%]
[2023/09/12 08:09:20.703 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=2741] [cur_db=tpcc] [sql="alter table customer drop column adc_11"] [user=root@%]
[2023/09/12 08:16:35.009 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=2833] [cur_db=tpcc] [sql="alter table customer drop column adc_12"] [user=root@%]
[2023/09/12 08:16:35.010 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=2833] [cur_db=tpcc] [sql="alter table customer add column adc_12 datetime default current_timestamp on Update current_timestamp"] [user=root@%]
[2023/09/12 08:17:07.267 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=2837] [cur_db=tpcc] [sql="alter table customer drop column adc_12"] [user=root@%]
[2023/09/12 08:24:25.786 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=2929] [cur_db=tpcc] [sql="alter table customer drop column adc_13"] [user=root@%]
[2023/09/12 08:24:25.787 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=2929] [cur_db=tpcc] [sql="alter table customer add column adc_13 longtext"] [user=root@%]
[2023/09/12 08:24:58.878 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=2933] [cur_db=tpcc] [sql="alter table customer drop column adc_13"] [user=root@%]
[2023/09/12 08:32:29.694 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=3025] [cur_db=tpcc] [sql="alter table customer drop column adc_14"] [user=root@%]
[2023/09/12 08:32:29.695 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=3025] [cur_db=tpcc] [sql="alter table customer add column adc_14 mediumblob"] [user=root@%]
[2023/09/12 08:33:08.009 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=3029] [cur_db=tpcc] [sql="alter table customer drop column adc_14"] [user=root@%]
[2023/09/12 08:40:12.754 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=3121] [cur_db=tpcc] [sql="alter table customer drop column adc_15"] [user=root@%]
[2023/09/12 08:40:12.756 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=3121] [cur_db=tpcc] [sql="alter table customer add column adc_15 date"] [user=root@%]
[2023/09/12 08:40:54.782 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=3125] [cur_db=tpcc] [sql="alter table customer drop column adc_15"] [user=root@%]
[2023/09/12 08:48:37.258 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=3217] [cur_db=tpcc] [sql="alter table customer drop column adc_16"] [user=root@%]
[2023/09/12 08:48:37.259 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=3217] [cur_db=tpcc] [sql="alter table customer add column adc_16 time"] [user=root@%]
[2023/09/12 08:49:09.902 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=3221] [cur_db=tpcc] [sql="alter table customer drop column adc_16"] [user=root@%]
[2023/09/12 08:56:40.468 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=3313] [cur_db=tpcc] [sql="alter table customer drop column adc_17"] [user=root@%]
[2023/09/12 08:56:40.470 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=3313] [cur_db=tpcc] [sql="alter table customer add column adc_17 longtext"] [user=root@%]
[2023/09/12 08:57:12.290 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=3317] [cur_db=tpcc] [sql="alter table customer drop column adc_17"] [user=root@%]
[2023/09/12 09:04:35.156 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=3409] [cur_db=tpcc] [sql="alter table customer drop column adc_18"] [user=root@%]
[2023/09/12 09:04:35.158 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=3409] [cur_db=tpcc] [sql="alter table customer add column adc_18 date"] [user=root@%]
[2023/09/12 09:05:08.764 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=3413] [cur_db=tpcc] [sql="alter table customer drop column adc_18"] [user=root@%]
[2023/09/12 09:12:31.651 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=3505] [cur_db=tpcc] [sql="alter table customer drop column adc_19"] [user=root@%]
[2023/09/12 09:12:31.652 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=3505] [cur_db=tpcc] [sql="alter table customer add column adc_19 tinyblob"] [user=root@%]
[2023/09/12 09:13:05.247 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=3509] [cur_db=tpcc] [sql="alter table customer drop column adc_19"] [user=root@%]
[2023/09/12 09:20:29.035 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=3601] [cur_db=tpcc] [sql="alter table customer drop column adc_20"] [user=root@%]
[2023/09/12 09:20:29.036 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=3601] [cur_db=tpcc] [sql="alter table customer add column adc_20 mediumint"] [user=root@%]
[2023/09/12 09:21:00.961 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=3605] [cur_db=tpcc] [sql="alter table customer drop column adc_20"] [user=root@%]
[2023/09/12 09:28:19.506 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=3697] [cur_db=tpcc] [sql="alter table customer drop column adc_21"] [user=root@%]
[2023/09/12 09:28:19.508 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=3697] [cur_db=tpcc] [sql="alter table customer add column adc_21 decimal(5,2)"] [user=root@%]
[2023/09/12 09:28:52.649 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=3701] [cur_db=tpcc] [sql="alter table customer drop column adc_21"] [user=root@%]
[2023/09/12 09:36:33.993 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=3793] [cur_db=tpcc] [sql="alter table customer drop column adc_22"] [user=root@%]
[2023/09/12 09:36:33.994 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=3793] [cur_db=tpcc] [sql="alter table customer add column adc_22 int default 10"] [user=root@%]
[2023/09/12 09:37:08.306 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=3797] [cur_db=tpcc] [sql="alter table customer drop column adc_22"] [user=root@%]
[2023/09/12 09:44:47.369 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=3889] [cur_db=tpcc] [sql="alter table customer drop column adc_23"] [user=root@%]
[2023/09/12 09:44:47.371 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=3889] [cur_db=tpcc] [sql="alter table customer add column adc_23 datetime default current_timestamp on Update current_timestamp"] [user=root@%]
[2023/09/12 09:45:19.904 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=3893] [cur_db=tpcc] [sql="alter table customer drop column adc_23"] [user=root@%]
[2023/09/12 09:53:06.385 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=4069] [cur_db=tpcc] [sql="alter table customer drop column adc_24"] [user=root@%]
[2023/09/12 09:53:06.387 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=4069] [cur_db=tpcc] [sql="alter table customer add column adc_24 int default 10"] [user=root@%]
[2023/09/12 09:53:23.275 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226857960] [schemaVersion=4077] [cur_db=tpcc] [sql="alter table customer drop column cct_1"] [user=root@%]
[2023/09/12 09:53:23.276 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226857960] [schemaVersion=4077] [cur_db=tpcc] [sql="alter table customer add column cct_1 varchar(20)"] [user=root@%]
[2023/09/12 09:53:38.877 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=4081] [cur_db=tpcc] [sql="alter table customer drop column adc_24"] [user=root@%]
[2023/09/12 09:53:55.466 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226857960] [schemaVersion=4086] [cur_db=tpcc] [sql="alter table customer modify cct_1 varchar(10)"] [user=root@%]
[2023/09/12 09:53:56.832 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226857960] [schemaVersion=4086] [cur_db=tpcc] [sql="alter table customer drop column cct_1"] [user=root@%]
[2023/09/12 10:01:13.991 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=4276] [cur_db=tpcc] [sql="alter table customer drop column adc_25"] [user=root@%]
[2023/09/12 10:01:13.992 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=4276] [cur_db=tpcc] [sql="alter table customer add column adc_25 datetime default current_timestamp on Update current_timestamp"] [user=root@%]
[2023/09/12 10:01:32.998 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226857960] [schemaVersion=4284] [cur_db=tpcc] [sql="alter table customer drop column cct_2"] [user=root@%]
[2023/09/12 10:01:32.999 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226857960] [schemaVersion=4284] [cur_db=tpcc] [sql="alter table customer add column cct_2 int"] [user=root@%]
[2023/09/12 10:02:00.345 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226855080] [schemaVersion=4288] [cur_db=tpcc] [sql="alter table customer drop column adc_25"] [user=root@%]
[2023/09/12 10:02:08.056 +08:00] [INFO] [session.go:3917] ["CRUCIAL OPERATION"] [conn=1226857960] [schemaVersion=4293] [cur_db=tpcc] [sql="alter table customer modify cct_2 json"] [user=root@%]

There exist a cct_2 wich values is larger than int32

> show create table customer \G;
***************************[ 1. row ]***************************
Table        | customer
Create Table | CREATE TABLE `customer` (
  `c_id` int(11) NOT NULL,
  `c_d_id` int(11) NOT NULL,
  `c_w_id` int(11) NOT NULL,
  `c_first` varchar(16) DEFAULT NULL,
  `c_middle` char(2) DEFAULT NULL,
  `c_last` varchar(16) DEFAULT NULL,
  `c_street_1` varchar(20) DEFAULT NULL,
  `c_street_2` varchar(20) DEFAULT NULL,
  `c_city` varchar(20) DEFAULT NULL,
  `c_state` char(2) DEFAULT NULL,
  `c_zip` char(9) DEFAULT NULL,
  `c_phone` char(16) DEFAULT NULL,
  `c_since` datetime DEFAULT NULL,
  `c_credit` char(2) DEFAULT NULL,
  `c_credit_lim` decimal(12,2) DEFAULT NULL,
  `c_discount` decimal(4,4) DEFAULT NULL,
  `c_balance` decimal(12,2) DEFAULT NULL,
  `c_ytd_payment` decimal(12,2) DEFAULT NULL,
  `c_payment_cnt` int(11) DEFAULT NULL,
  `c_delivery_cnt` int(11) DEFAULT NULL,
  `c_data` varchar(500) DEFAULT NULL,
  `cct_2` int(11) DEFAULT NULL,
  PRIMARY KEY (`c_w_id`,`c_d_id`,`c_id`) /*T![clustered_index] NONCLUSTERED */,
  KEY `idx_customer` (`c_w_id`,`c_d_id`,`c_last`,`c_first`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin
PARTITION BY HASH (`c_w_id`) PARTITIONS 100
> set session tidb_isolation_read_engines='tikv'
> select _tidb_rowid,cct_2 from customer where cct_2 is not null;
+-------------+---------------------+
| _tidb_rowid | cct_2               |
+-------------+---------------------+
| 20041946    | 1851287998591664128 |
+-------------+---------------------+

TEST_F(RegionBlockReaderTest, ReadFromRegion2)
try
{
    TableInfo table_info(
        R"json({"id":4970,"name":{"O":"customer","L":"customer"},"charset":"utf8mb4","collate":"utf8mb4_bin","cols":[{"id":1,"name":{"O":"c_id","L":"c_id"},"offset":0,"origin_default":null,"origin_default_bit":null,"default":null,"default_bit":null,"default_is_expr":false,"generated_expr_string":"","generated_stored":false,"dependences":null,"type":{"Tp":3,"Flag":4099,"Flen":11,"Decimal":0,"Charset":"binary","Collate":"binary","Elems":null,"ElemsIsBinaryLit":null,"Array":false},"state":5,"comment":"","hidden":false,"change_state_info":null,"version":2},{"id":2,"name":{"O":"c_d_id","L":"c_d_id"},"offset":1,"origin_default":null,"origin_default_bit":null,"default":null,"default_bit":null,"default_is_expr":false,"generated_expr_string":"","generated_stored":false,"dependences":null,"type":{"Tp":3,"Flag":4099,"Flen":11,"Decimal":0,"Charset":"binary","Collate":"binary","Elems":null,"ElemsIsBinaryLit":null,"Array":false},"state":5,"comment":"","hidden":false,"change_state_info":null,"version":2},{"id":3,"name":{"O":"c_w_id","L":"c_w_id"},"offset":2,"origin_default":null,"origin_default_bit":null,"default":null,"default_bit":null,"default_is_expr":false,"generated_expr_string":"","generated_stored":false,"dependences":null,"type":{"Tp":3,"Flag":4107,"Flen":11,"Decimal":0,"Charset":"binary","Collate":"binary","Elems":null,"ElemsIsBinaryLit":null,"Array":false},"state":5,"comment":"","hidden":false,"change_state_info":null,"version":2},{"id":4,"name":{"O":"c_first","L":"c_first"},"offset":3,"origin_default":null,"origin_default_bit":null,"default":null,"default_bit":null,"default_is_expr":false,"generated_expr_string":"","generated_stored":false,"dependences":null,"type":{"Tp":15,"Flag":0,"Flen":16,"Decimal":0,"Charset":"utf8mb4","Collate":"utf8mb4_bin","Elems":null,"ElemsIsBinaryLit":null,"Array":false},"state":5,"comment":"","hidden":false,"change_state_info":null,"version":2},{"id":5,"name":{"O":"c_middle","L":"c_middle"},"offset":4,"origin_default":null,"origin_default_bit":null,"default":null,"default_bit":null,"default_is_expr":false,"generated_expr_string":"","generated_stored":false,"dependences":null,"type":{"Tp":254,"Flag":0,"Flen":2,"Decimal":0,"Charset":"utf8mb4","Collate":"utf8mb4_bin","Elems":null,"ElemsIsBinaryLit":null,"Array":false},"state":5,"comment":"","hidden":false,"change_state_info":null,"version":2},{"id":6,"name":{"O":"c_last","L":"c_last"},"offset":5,"origin_default":null,"origin_default_bit":null,"default":null,"default_bit":null,"default_is_expr":false,"generated_expr_string":"","generated_stored":false,"dependences":null,"type":{"Tp":15,"Flag":0,"Flen":16,"Decimal":0,"Charset":"utf8mb4","Collate":"utf8mb4_bin","Elems":null,"ElemsIsBinaryLit":null,"Array":false},"state":5,"comment":"","hidden":false,"change_state_info":null,"version":2},{"id":7,"name":{"O":"c_street_1","L":"c_street_1"},"offset":6,"origin_default":null,"origin_default_bit":null,"default":null,"default_bit":null,"default_is_expr":false,"generated_expr_string":"","generated_stored":false,"dependences":null,"type":{"Tp":15,"Flag":0,"Flen":20,"Decimal":0,"Charset":"utf8mb4","Collate":"utf8mb4_bin","Elems":null,"ElemsIsBinaryLit":null,"Array":false},"state":5,"comment":"","hidden":false,"change_state_info":null,"version":2},{"id":8,"name":{"O":"c_street_2","L":"c_street_2"},"offset":7,"origin_default":null,"origin_default_bit":null,"default":null,"default_bit":null,"default_is_expr":false,"generated_expr_string":"","generated_stored":false,"dependences":null,"type":{"Tp":15,"Flag":0,"Flen":20,"Decimal":0,"Charset":"utf8mb4","Collate":"utf8mb4_bin","Elems":null,"ElemsIsBinaryLit":null,"Array":false},"state":5,"comment":"","hidden":false,"change_state_info":null,"version":2},{"id":9,"name":{"O":"c_city","L":"c_city"},"offset":8,"origin_default":null,"origin_default_bit":null,"default":null,"default_bit":null,"default_is_expr":false,"generated_expr_string":"","generated_stored":false,"dependences":null,"type":{"Tp":15,"Flag":0,"Flen":20,"Decimal":0,"Charset":"utf8mb4","Collate":"utf8mb4_bin","Elems":null,"ElemsIsBinaryLit":null,"Array":false},"state":5,"comment":"","hidden":false,"change_state_info":null,"version":2},{"id":10,"name":{"O":"c_state","L":"c_state"},"offset":9,"origin_default":null,"origin_default_bit":null,"default":null,"default_bit":null,"default_is_expr":false,"generated_expr_string":"","generated_stored":false,"dependences":null,"type":{"Tp":254,"Flag":0,"Flen":2,"Decimal":0,"Charset":"utf8mb4","Collate":"utf8mb4_bin","Elems":null,"ElemsIsBinaryLit":null,"Array":false},"state":5,"comment":"","hidden":false,"change_state_info":null,"version":2},{"id":11,"name":{"O":"c_zip","L":"c_zip"},"offset":10,"origin_default":null,"origin_default_bit":null,"default":null,"default_bit":null,"default_is_expr":false,"generated_expr_string":"","generated_stored":false,"dependences":null,"type":{"Tp":254,"Flag":0,"Flen":9,"Decimal":0,"Charset":"utf8mb4","Collate":"utf8mb4_bin","Elems":null,"ElemsIsBinaryLit":null,"Array":false},"state":5,"comment":"","hidden":false,"change_state_info":null,"version":2},{"id":12,"name":{"O":"c_phone","L":"c_phone"},"offset":11,"origin_default":null,"origin_default_bit":null,"default":null,"default_bit":null,"default_is_expr":false,"generated_expr_string":"","generated_stored":false,"dependences":null,"type":{"Tp":254,"Flag":0,"Flen":16,"Decimal":0,"Charset":"utf8mb4","Collate":"utf8mb4_bin","Elems":null,"ElemsIsBinaryLit":null,"Array":false},"state":5,"comment":"","hidden":false,"change_state_info":null,"version":2},{"id":13,"name":{"O":"c_since","L":"c_since"},"offset":12,"origin_default":null,"origin_default_bit":null,"default":null,"default_bit":null,"default_is_expr":false,"generated_expr_string":"","generated_stored":false,"dependences":null,"type":{"Tp":12,"Flag":128,"Flen":19,"Decimal":0,"Charset":"binary","Collate":"binary","Elems":null,"ElemsIsBinaryLit":null,"Array":false},"state":5,"comment":"","hidden":false,"change_state_info":null,"version":2},{"id":14,"name":{"O":"c_credit","L":"c_credit"},"offset":13,"origin_default":null,"origin_default_bit":null,"default":null,"default_bit":null,"default_is_expr":false,"generated_expr_string":"","generated_stored":false,"dependences":null,"type":{"Tp":254,"Flag":0,"Flen":2,"Decimal":0,"Charset":"utf8mb4","Collate":"utf8mb4_bin","Elems":null,"ElemsIsBinaryLit":null,"Array":false},"state":5,"comment":"","hidden":false,"change_state_info":null,"version":2},{"id":15,"name":{"O":"c_credit_lim","L":"c_credit_lim"},"offset":14,"origin_default":null,"origin_default_bit":null,"default":null,"default_bit":null,"default_is_expr":false,"generated_expr_string":"","generated_stored":false,"dependences":null,"type":{"Tp":246,"Flag":0,"Flen":12,"Decimal":2,"Charset":"binary","Collate":"binary","Elems":null,"ElemsIsBinaryLit":null,"Array":false},"state":5,"comment":"","hidden":false,"change_state_info":null,"version":2},{"id":16,"name":{"O":"c_discount","L":"c_discount"},"offset":15,"origin_default":null,"origin_default_bit":null,"default":null,"default_bit":null,"default_is_expr":false,"generated_expr_string":"","generated_stored":false,"dependences":null,"type":{"Tp":246,"Flag":0,"Flen":4,"Decimal":4,"Charset":"binary","Collate":"binary","Elems":null,"ElemsIsBinaryLit":null,"Array":false},"state":5,"comment":"","hidden":false,"change_state_info":null,"version":2},{"id":17,"name":{"O":"c_balance","L":"c_balance"},"offset":16,"origin_default":null,"origin_default_bit":null,"default":null,"default_bit":null,"default_is_expr":false,"generated_expr_string":"","generated_stored":false,"dependences":null,"type":{"Tp":246,"Flag":0,"Flen":12,"Decimal":2,"Charset":"binary","Collate":"binary","Elems":null,"ElemsIsBinaryLit":null,"Array":false},"state":5,"comment":"","hidden":false,"change_state_info":null,"version":2},{"id":18,"name":{"O":"c_ytd_payment","L":"c_ytd_payment"},"offset":17,"origin_default":null,"origin_default_bit":null,"default":null,"default_bit":null,"default_is_expr":false,"generated_expr_string":"","generated_stored":false,"dependences":null,"type":{"Tp":246,"Flag":0,"Flen":12,"Decimal":2,"Charset":"binary","Collate":"binary","Elems":null,"ElemsIsBinaryLit":null,"Array":false},"state":5,"comment":"","hidden":false,"change_state_info":null,"version":2},{"id":19,"name":{"O":"c_payment_cnt","L":"c_payment_cnt"},"offset":18,"origin_default":null,"origin_default_bit":null,"default":null,"default_bit":null,"default_is_expr":false,"generated_expr_string":"","generated_stored":false,"dependences":null,"type":{"Tp":3,"Flag":0,"Flen":11,"Decimal":0,"Charset":"binary","Collate":"binary","Elems":null,"ElemsIsBinaryLit":null,"Array":false},"state":5,"comment":"","hidden":false,"change_state_info":null,"version":2},{"id":20,"name":{"O":"c_delivery_cnt","L":"c_delivery_cnt"},"offset":19,"origin_default":null,"origin_default_bit":null,"default":null,"default_bit":null,"default_is_expr":false,"generated_expr_string":"","generated_stored":false,"dependences":null,"type":{"Tp":3,"Flag":0,"Flen":11,"Decimal":0,"Charset":"binary","Collate":"binary","Elems":null,"ElemsIsBinaryLit":null,"Array":false},"state":5,"comment":"","hidden":false,"change_state_info":null,"version":2},{"id":21,"name":{"O":"c_data","L":"c_data"},"offset":20,"origin_default":null,"origin_default_bit":null,"default":null,"default_bit":null,"default_is_expr":false,"generated_expr_string":"","generated_stored":false,"dependences":null,"type":{"Tp":15,"Flag":0,"Flen":500,"Decimal":0,"Charset":"utf8mb4","Collate":"utf8mb4_bin","Elems":null,"ElemsIsBinaryLit":null,"Array":false},"state":5,"comment":"","hidden":false,"change_state_info":null,"version":2},{"id":48,"name":{"O":"cct_2","L":"cct_2"},"offset":21,"origin_default":null,"origin_default_bit":null,"default":null,"default_bit":null,"default_is_expr":false,"generated_expr_string":"","generated_stored":false,"dependences":null,"type":{"Tp":3,"Flag":0,"Flen":11,"Decimal":0,"Charset":"binary","Collate":"binary","Elems":null,"ElemsIsBinaryLit":null,"Array":false},"state":5,"comment":"","hidden":false,"change_state_info":null,"version":2},{"id":47,"name":{"O":"adc_25","L":"adc_25"},"offset":22,"origin_default":"2023-09-12 10:01:13","origin_default_bit":null,"default":"CURRENT_TIMESTAMP","default_bit":null,"default_is_expr":false,"generated_expr_string":"","generated_stored":false,"dependences":null,"type":{"Tp":12,"Flag":8320,"Flen":19,"Decimal":0,"Charset":"binary","Collate":"binary","Elems":null,"ElemsIsBinaryLit":null,"Array":false},"state":2,"comment":"","hidden":false,"change_state_info":null,"version":2}],"index_info":[{"id":1,"idx_name":{"O":"PRIMARY","L":"primary"},"tbl_name":{"O":"","L":""},"idx_cols":[{"name":{"O":"c_w_id","L":"c_w_id"},"offset":2,"length":-1},{"name":{"O":"c_d_id","L":"c_d_id"},"offset":1,"length":-1},{"name":{"O":"c_id","L":"c_id"},"offset":0,"length":-1}],"state":5,"backfill_state":0,"comment":"","index_type":1,"is_unique":true,"is_primary":true,"is_invisible":false,"is_global":false,"mv_index":false},{"id":2,"idx_name":{"O":"idx_customer","L":"idx_customer"},"tbl_name":{"O":"","L":""},"idx_cols":[{"name":{"O":"c_w_id","L":"c_w_id"},"offset":2,"length":-1},{"name":{"O":"c_d_id","L":"c_d_id"},"offset":1,"length":-1},{"name":{"O":"c_last","L":"c_last"},"offset":5,"length":-1},{"name":{"O":"c_first","L":"c_first"},"offset":3,"length":-1}],"state":5,"backfill_state":0,"comment":"","index_type":1,"is_unique":false,"is_primary":false,"is_invisible":false,"is_global":false,"mv_index":false}],"constraint_info":null,"fk_info":[],"state":5,"pk_is_handle":false,"is_common_handle":false,"common_handle_version":0,"comment":"","auto_inc_id":30207016,"auto_id_cache":0,"auto_rand_id":0,"max_col_id":48,"max_idx_id":2,"max_fk_id":0,"max_cst_id":0,"update_timestamp":444198845243195478,"ShardRowIDBits":0,"max_shard_row_id_bits":0,"auto_random_bits":0,"auto_random_range_bits":0,"pre_split_regions":0,"partition":{"type":2,"expr":"`c_w_id`","columns":[],"enable":true,"definitions":[{"id":4971,"name":{"O":"p0","L":"p0"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":4972,"name":{"O":"p1","L":"p1"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":4973,"name":{"O":"p2","L":"p2"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":4974,"name":{"O":"p3","L":"p3"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":4975,"name":{"O":"p4","L":"p4"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":4976,"name":{"O":"p5","L":"p5"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":4977,"name":{"O":"p6","L":"p6"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":4978,"name":{"O":"p7","L":"p7"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":4979,"name":{"O":"p8","L":"p8"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":4980,"name":{"O":"p9","L":"p9"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":4981,"name":{"O":"p10","L":"p10"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":4982,"name":{"O":"p11","L":"p11"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":4983,"name":{"O":"p12","L":"p12"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":4984,"name":{"O":"p13","L":"p13"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":4985,"name":{"O":"p14","L":"p14"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":4986,"name":{"O":"p15","L":"p15"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":4987,"name":{"O":"p16","L":"p16"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":4988,"name":{"O":"p17","L":"p17"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":4989,"name":{"O":"p18","L":"p18"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":4990,"name":{"O":"p19","L":"p19"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":4991,"name":{"O":"p20","L":"p20"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":4992,"name":{"O":"p21","L":"p21"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":4993,"name":{"O":"p22","L":"p22"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":4994,"name":{"O":"p23","L":"p23"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":4995,"name":{"O":"p24","L":"p24"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":4996,"name":{"O":"p25","L":"p25"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":4997,"name":{"O":"p26","L":"p26"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":4998,"name":{"O":"p27","L":"p27"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":4999,"name":{"O":"p28","L":"p28"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5000,"name":{"O":"p29","L":"p29"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5001,"name":{"O":"p30","L":"p30"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5002,"name":{"O":"p31","L":"p31"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5003,"name":{"O":"p32","L":"p32"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5004,"name":{"O":"p33","L":"p33"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5005,"name":{"O":"p34","L":"p34"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5006,"name":{"O":"p35","L":"p35"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5007,"name":{"O":"p36","L":"p36"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5008,"name":{"O":"p37","L":"p37"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5009,"name":{"O":"p38","L":"p38"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5010,"name":{"O":"p39","L":"p39"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5011,"name":{"O":"p40","L":"p40"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5012,"name":{"O":"p41","L":"p41"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5013,"name":{"O":"p42","L":"p42"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5014,"name":{"O":"p43","L":"p43"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5015,"name":{"O":"p44","L":"p44"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5016,"name":{"O":"p45","L":"p45"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5017,"name":{"O":"p46","L":"p46"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5018,"name":{"O":"p47","L":"p47"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5019,"name":{"O":"p48","L":"p48"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5020,"name":{"O":"p49","L":"p49"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5021,"name":{"O":"p50","L":"p50"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5022,"name":{"O":"p51","L":"p51"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5023,"name":{"O":"p52","L":"p52"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5024,"name":{"O":"p53","L":"p53"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5025,"name":{"O":"p54","L":"p54"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5026,"name":{"O":"p55","L":"p55"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5027,"name":{"O":"p56","L":"p56"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5028,"name":{"O":"p57","L":"p57"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5029,"name":{"O":"p58","L":"p58"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5030,"name":{"O":"p59","L":"p59"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5031,"name":{"O":"p60","L":"p60"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5032,"name":{"O":"p61","L":"p61"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5033,"name":{"O":"p62","L":"p62"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5034,"name":{"O":"p63","L":"p63"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5035,"name":{"O":"p64","L":"p64"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5036,"name":{"O":"p65","L":"p65"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5037,"name":{"O":"p66","L":"p66"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5038,"name":{"O":"p67","L":"p67"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5039,"name":{"O":"p68","L":"p68"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5040,"name":{"O":"p69","L":"p69"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5041,"name":{"O":"p70","L":"p70"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5042,"name":{"O":"p71","L":"p71"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5043,"name":{"O":"p72","L":"p72"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5044,"name":{"O":"p73","L":"p73"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5045,"name":{"O":"p74","L":"p74"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5046,"name":{"O":"p75","L":"p75"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5047,"name":{"O":"p76","L":"p76"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5048,"name":{"O":"p77","L":"p77"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5049,"name":{"O":"p78","L":"p78"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5050,"name":{"O":"p79","L":"p79"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5051,"name":{"O":"p80","L":"p80"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5052,"name":{"O":"p81","L":"p81"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5053,"name":{"O":"p82","L":"p82"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5054,"name":{"O":"p83","L":"p83"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5055,"name":{"O":"p84","L":"p84"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5056,"name":{"O":"p85","L":"p85"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5057,"name":{"O":"p86","L":"p86"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5058,"name":{"O":"p87","L":"p87"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5059,"name":{"O":"p88","L":"p88"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5060,"name":{"O":"p89","L":"p89"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5061,"name":{"O":"p90","L":"p90"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5062,"name":{"O":"p91","L":"p91"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5063,"name":{"O":"p92","L":"p92"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5064,"name":{"O":"p93","L":"p93"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5065,"name":{"O":"p94","L":"p94"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5066,"name":{"O":"p95","L":"p95"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5067,"name":{"O":"p96","L":"p96"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5068,"name":{"O":"p97","L":"p97"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5069,"name":{"O":"p98","L":"p98"},"less_than":[],"in_values":null,"policy_ref_info":null},{"id":5070,"name":{"O":"p99","L":"p99"},"less_than":[],"in_values":null,"policy_ref_info":null}],"adding_definitions":[],"dropping_definitions":[],"NewPartitionIDs":null,"states":null,"num":100,"ddl_state":0,"new_table_id":0,"ddl_type":0,"ddl_expr":"","ddl_columns":null},"compression":"","view":null,"sequence":null,"Lock":null,"version":3,"tiflash_replica":{"Count":2,"LocationLabels":[],"Available":true,"AvailablePartitionIDs":[4987,5033,4985,4988,5007,5032,5034,5030,5059,5031,5029,5049,5028,4974,5012,5006,5011,5013,5050,5061,5024,5046,5047,4984,4989,4990,5045,4979,4986,5036,5038,5039,4996,5040,4983,5043,5017,5010,5016,5052,5018,5019,5008,5065,5009,5014,5015,5020,5026,5042,5044,5069,4972,4995,4997,4998,5023,5025,5041,5053,5054,4973,4981,4999,5000,5001,5048,4978,5051,5002,5003,5066,4991,5055,4982,5022,5056,5064,4971,4975,4976,4977,4980,4993,5037,5058,4992,4994,5004,5021,5005,5027,5035,5057,5060,5062,5063,5067,5068,5070]}})json",
        NullspaceID);

    // the hex kv dump from logging
    std::tuple<std::string_view, std::string_view> kv = {
        "7480000000000013FFA45F728000000001FF31D0DA0000000000FAF9D5E380F2DBFFBF",
        "8000160001000102030405060708090A0B0C0D0E0F101112131415302F020003000500120014001F002C003C004D004F0058006800700"
        "072007A007E0086008E008F00900067026F020B0A0691024A39644642654253754670617A4F454154494F4E4241524553454B67735173"
        "3239595A347A723063623056416D7A4474755A535562754A5131727369366762376D646555526A4A52575034383132313131313138343"
        "534323438333738383333323630000000E0D48CAC1947430C02800000C35000040488E80C027FFFFFE679F40C0280000019860B030063"
        "3732627831477346475549356D356F70596C6E57553062414F7556424E6E784D44624A366269354B7245455437564A694849647671506"
        "8366E4A5872383571394759794E73384875574B3349643369374F717A68774F793363456F454659644634684F7462624D356B436C786F"
        "386452795A7055767178687967326B363774335561686B4F455155506E59776F6C4D4E4E71454263756B57474D414A553031514B42766"
        "9756F3464504271706E5A624D72736D6B7042764B576C4E565339416A727A46307079324C746F7152303052546468374C544F48396E43"
        "7670306B6F4E4344793978436B766E47616F465735717465304F444C4E4E4B37534A70426D6F4F4E547947694C5879443334437530595"
        "A3745536479666E596E435471477565674C475779547A786B35384867623068367976626B6F444F645952786157337A43307944766849"
        "67626F7972627939624F644B4334784C426D486269676749366B383662643658505163316B30734B786E734947397636434E345065464"
        "24B394B7465686973564952757056515A4F5472745152534D6650524254376D46316C685844377953496D594C73306D61434C59796650"
        "70454E306364436D7A6F353677413063504C356D303842547779734249595A5070730000004DA018B119",
    };

    TiKVKey key(bytesFromHexString(std::get<0>(kv)));
    auto raw_key = std::get<0>(RecordKVFormat::decodeTiKVKeyFull(key));
    auto tidb_pk = RecordKVFormat::getRawTiDBPK(raw_key);
    Timestamp ts = 2;
    auto value = std::make_shared<const TiKVValue>(bytesFromHexString(std::get<1>(kv)));

    std::optional<RegionDataReadInfoList> data_list_read = std::make_optional(std::vector<RegionDataReadInfo>{
        {tidb_pk, static_cast<UInt8>(0), ts, value},
    });

    auto decoding_schema = getDecodingStorageSchemaSnapshot(table_info);
    {
        // force_decode=false can not decode because there are
        // missing value for column with primary key flag.
        auto reader = RegionBlockReader(decoding_schema);
        Block res_block = createBlockSortByColumnID(decoding_schema);
        EXPECT_FALSE(reader.read(res_block, *data_list_read, false));
    }
}
CATCH

@CalvinNeo
Copy link
Member

Another

[2023/11/22 19:42:04.892 +08:00] [FATAL] [Exception.cpp:106] ["Code: 49, e.displayText() = DB::Exception: Detected overflow when decoding integer of length 4 with column type Int16: pk_type is INT64, schema_snapshot->sorted_column_id_with_pos is  [map info : (column_id=-1025, pos=2) (column_id=-1024, pos=1) (column_id=-1, pos=0) (column_id=1, pos=3) (column_id=2, pos=4) (column_id=3, pos=5) (column_id=4, pos=6) (column_id=5, pos=7) (column_id=6, pos=8) (column_id=7, pos=9) (column_id=8, pos=10) (column_id=9, pos=11) (column_id=10, pos=12) (column_id=11, pos=13) (column_id=12, pos=14) (column_id=13, pos=15) (column_id=14, pos=16) (column_id=15, pos=17) (column_id=16, pos=18) (column_id=17, pos=19) (column_id=18, pos=20) (column_id=19, pos=21) (column_id=20, pos=22) (column_id=21, pos=23) (column_id=23, pos=24)  ];, schema_snapshot->column_defines is  [column define : (id=-1, name=_tidb_rowid, type=Int64) (id=-1024, name=_INTERNAL_VERSION, type=UInt64) (id=-1025, name=_INTERNAL_DELMARK, type=UInt8) (id=1, name=c_id, type=Int32) (id=2, name=c_d_id, type=Int32) (id=3, name=c_w_id, type=Int32) (id=4, name=c_first, type=Nullable(String)) (id=5, name=c_middle, type=Nullable(String)) (id=6, name=c_last, type=Nullable(String)) (id=7, name=c_street_1, type=Nullable(String)) (id=8, name=c_street_2, type=Nullable(String)) (id=9, name=c_city, type=Nullable(String)) (id=10, name=c_state, type=Nullable(String)) (id=11, name=c_zip, type=Nullable(String)) (id=12, name=c_phone, type=Nullable(String)) (id=13, name=c_since, type=Nullable(MyDateTime(0))) (id=14, name=c_credit, type=Nullable(String)) (id=15, name=c_credit_lim, type=Nullable(Decimal(12,2))) (id=16, name=c_discount, type=Nullable(Decimal(4,4))) (id=17, name=c_balance, type=Nullable(Decimal(12,2))) (id=18, name=c_ytd_payment, type=Nullable(Decimal(12,2))) (id=19, name=c_payment_cnt, type=Nullable(Int32)) (id=20, name=c_delivery_cnt, type=Nullable(Int32)) (id=21, name=c_data, type=Nullable(String)) (id=23, name=adc_2, type=Nullable(Int16))  ];, decoding_snapshot_epoch is 4, block schema is [{\"name\":\"_INTERNAL_DELMARK\",\"id\":-1025,\"type\":\"UInt8\",\"column\":\"UInt8(size = 1)\"},{\"name\":\"_INTERNAL_VERSION\",\"id\":-1024,\"type\":\"UInt64\",\"column\":\"UInt64(size = 1)\"},{\"name\":\"_tidb_rowid\",\"id\":-1,\"type\":\"Int64\",\"column\":\"Int64(size = 0)\"},{\"name\":\"c_id\",\"id\":1,\"type\":\"Int32\",\"column\":\"Int32(size = 1)\"},{\"name\":\"c_d_id\",\"id\":2,\"type\":\"Int32\",\"column\":\"Int32(size = 1)\"},{\"name\":\"c_w_id\",\"id\":3,\"type\":\"Int32\",\"column\":\"Int32(size = 1)\"},{\"name\":\"c_first\",\"id\":4,\"type\":\"Nullable(String)\",\"column\":\"Nullable(size = 1, String(size = 1), UInt8(size = 1))\"},{\"name\":\"c_middle\",\"id\":5,\"type\":\"Nullable(String)\",\"column\":\"Nullable(size = 1, String(size = 1), UInt8(size = 1))\"},{\"name\":\"c_last\",\"id\":6,\"type\":\"Nullable(String)\",\"column\":\"Nullable(size = 1, String(size = 1), UInt8(size = 1))\"},{\"name\":\"c_street_1\",\"id\":7,\"type\":\"Nullable(String)\",\"column\":\"Nullable(size = 1, String(size = 1), UInt8(size = 1))\"},{\"name\":\"c_street_2\",\"id\":8,\"type\":\"Nullable(String)\",\"column\":\"Nullable(size = 1, String(size = 1), UInt8(size = 1))\"},{\"name\":\"c_city\",\"id\":9,\"type\":\"Nullable(String)\",\"column\":\"Nullable(size = 1, String(size = 1), UInt8(size = 1))\"},{\"name\":\"c_state\",\"id\":10,\"type\":\"Nullable(String)\",\"column\":\"Nullable(size = 1, String(size = 1), UInt8(size = 1))\"},{\"name\":\"c_zip\",\"id\":11,\"type\":\"Nullable(String)\",\"column\":\"Nullable(size = 1, String(size = 1), UInt8(size = 1))\"},{\"name\":\"c_phone\",\"id\":12,\"type\":\"Nullable(String)\",\"column\":\"Nullable(size = 1, String(size = 1), UInt8(size = 1))\"},{\"name\":\"c_since\",\"id\":13,\"type\":\"Nullable(MyDateTime(0))\",\"column\":\"Nullable(size = 1, UInt64(size = 1), UInt8(size = 1))\"},{\"name\":\"c_credit\",\"id\":14,\"type\":\"Nullable(String)\",\"column\":\"Nullable(size = 1, String(size = 1), UInt8(size = 1))\"},{\"name\":\"c_credit_lim\",\"id\":15,\"type\":\"Nullable(Decimal(12,2))\",\"column\":\"Nullable(size = 1, Decimal64(size = 1), UInt8(size = 1))\"},{\"name\":\"c_discount\",\"id\":16,\"type\":\"Nullable(Decimal(4,4))\",\"column\":\"Nullable(size = 1, Decimal32(size = 1), UInt8(size = 1))\"},{\"name\":\"c_balance\",\"id\":17,\"type\":\"Nullable(Decimal(12,2))\",\"column\":\"Nullable(size = 1, Decimal64(size = 1), UInt8(size = 1))\"},{\"name\":\"c_ytd_payment\",\"id\":18,\"type\":\"Nullable(Decimal(12,2))\",\"column\":\"Nullable(size = 1, Decimal64(size = 1), UInt8(size = 1))\"},{\"name\":\"c_payment_cnt\",\"id\":19,\"type\":\"Nullable(Int32)\",\"column\":\"Nullable(size = 1, Int32(size = 1), UInt8(size = 1))\"},{\"name\":\"c_delivery_cnt\",\"id\":20,\"type\":\"Nullable(Int32)\",\"column\":\"Nullable(size = 1, Int32(size = 1), UInt8(size = 1))\"},{\"name\":\"c_data\",\"id\":21,\"type\":\"Nullable(String)\",\"column\":\"Nullable(size = 1, String(size = 1), UInt8(size = 1))\"},{\"name\":\"adc_2\",\"id\":23,\"type\":\"Nullable(Int16)\",\"column\":\"Nullable(size = 0, Int16(size = 0), UInt8(size = 0))\"}] : TiKV value contains: : 8000160000000102030405060708090A0B0C0D0E0F1011121314151702000300050011001300210031003B004E00500059006900710073007B007F0087008F00900091001E0222022F06051C034F5A574E516331443356444F4F455052455343414C4C594154494F4E46395A636678334C79677861637872763851577761743041383732664B6A7066326562694C35336736694B6B6C5949383038373131313131323935343031353335353136333733340000000BCA8EAC1947430C02800000C350000404897B0C027FFFFFF5E99C0C028000000A166302004E4E6E39616F4C4C334244676A4B3537505465707162316D4E5777336C3949466B5576376B69685052436773684534504E4F494E3337706A307333326673764F50685452394D696F3459635072523947494C644B53633171615370386270595647684A38667236397744464A794B69513270724236456973456E726745683256437A46445454633952386B6C44775A353432696F53377A354A586D5670384B4E7A62413934554238544656786B4A6D4B33363569714259674D726F4772576E38785262584C4141614167634C73766B724E796E5373354D7A79706D4835553264764E69456F324A584E6F6339547064673678756776444B444D72336E586A484656467758726F75436F33634371427633387A443666304547624A63495676773850626C5563694E37586A576878694266474C513066304D717955527752733432504A57453439764D503238567A7A7641643767647951434D5438654131324E71334C41566A4F313637496962545439793778784E4C51327972393832424F757079566C356B464D68664331547762B07201, , e.what() = DB::Exception, Stack trace:\n\n\n       0x1eccb9e\tDB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) [tiflash+32295838]\n                \tdbms/src/Common/Exception.h:46\n       0x208f909\tDB::ColumnVector<short>::decodeTiDBRowV2Datum(unsigned long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned long, bool) [tiflash+34142473]\n                \tdbms/src/Columns/ColumnVector.h:267\n       0x7f96dc7\tDB::ColumnNullable::decodeTiDBRowV2Datum(unsigned long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned long, bool) [tiflash+133787079]\n                \tdbms/src/Columns/ColumnNullable.cpp:182\n       0x8560a6a\tbool DB::appendRowV2ToBlockImpl<false>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::__map_const_iterator<std::__1::__tree_const_iterator<std::__1::__value_type<long, unsigned long>, std::__1::__tree_node<std::__1::__value_type<long, unsigned long>, void*>*, long> >, std::__1::__map_const_iterator<std::__1::__tree_const_iterator<std::__1::__value_type<long, unsigned long>, std::__1::__tree_node<std::__1::__value_type<long, unsigned long>, void*>*, long> >, DB::Block&, unsigned long, std::__1::vector<TiDB::ColumnInfo, std::__1::allocator<TiDB::ColumnInfo> > const&, long, bool, bool) [tiflash+139856490]\n                \tdbms/src/TiDB/Decode/RowCodec.cpp:554\n       0x855f444\tDB::appendRowToBlock(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::__map_const_iterator<std::__1::__tree_const_iterator<std::__1::__value_type<long, unsigned long>, std::__1::__tree_node<std::__1::__value_type<long, unsigned long>, void*>*, long> >, std::__1::__map_const_iterator<std::__1::__tree_const_iterator<std::__1::__value_type<long, unsigned long>, std::__1::__tree_node<std::__1::__value_type<long, unsigned long>, void*>*, long> >, DB::Block&, unsigned long, std::__1::shared_ptr<DB::DecodingStorageSchemaSnapshot const> const&, bool) [tiflash+139850820]\n                \tdbms/src/TiDB/Decode/RowCodec.cpp:362\n       0x8b06033\tDB::RegionBlockReader::read(DB::Block&, std::__1::vector<std::__1::tuple<DB::RawTiDBPK, unsigned char, unsigned long, std::__1::shared_ptr<DB::StringObject<false> const> >, std::__1::allocator<std::__1::tuple<DB::RawTiDBPK, unsigned char, unsigned long, std::__1::shared_ptr<DB::StringObject<false> const> > > > const&, bool) [tiflash+145776691]\n                \tdbms/src/Storages/KVStore/Decode/RegionBlockReader.cpp:49\n       0x8affd0f\tDB::writeRegionDataToStorage(DB::Context&, DB::RegionPtrWithBlock const&, std::__1::vector<std::__1::tuple<DB::RawTiDBPK, unsigned char, unsigned long, std::__1::shared_ptr<DB::StringObject<false> const> >, std::__1::allocator<std::__1::tuple<DB::RawTiDBPK, unsigned char, unsigned long, std::__1::shared_ptr<DB::StringObject<false> const> > > >&, std::__1::shared_ptr<DB::Logger> const&)::$_2::operator()(bool) const [tiflash+145751311]\n                \tdbms/src/Storages/KVStore/Decode/PartitionStreams.cpp:133\n       0x8afc576\tDB::writeRegionDataToStorage(DB::Context&, DB::RegionPtrWithBlock const&, std::__1::vector<std::__1::tuple<DB::RawTiDBPK, unsigned char, unsigned long, std::__1::shared_ptr<DB::StringObject<false> const> >, std::__1::allocator<std::__1::tuple<DB::RawTiDBPK, unsigned char, unsigned long, std::__1::shared_ptr<DB::StringObject<false> const> > > >&, std::__1::shared_ptr<DB::Logger> const&) [tiflash+145737078]\n                \tdbms/src/Storages/KVStore/Decode/PartitionStreams.cpp:212\n       0x8afbe46\tDB::RegionTable::writeBlockByRegion(DB::Context&, DB::RegionPtrWithBlock const&, std::__1::vector<std::__1::tuple<DB::RawTiDBPK, unsigned char, unsigned long, std::__1::shared_ptr<DB::StringObject<false> const> >, std::__1::allocator<std::__1::tuple<DB::RawTiDBPK, unsigned char, unsigned long, std::__1::shared_ptr<DB::StringObject<false> const> > > >&, std::__1::shared_ptr<DB::Logger> const&, bool) [tiflash+145735238]\n                \tdbms/src/Storages/KVStore/Decode/PartitionStreams.cpp:390\n       0x8aa7386\tDB::Region::handleWriteRaftCmd(DB::WriteCmdsView const&, unsigned long, unsigned long, DB::TMTContext&) [tiflash+145388422]\n                \tdbms/src/Storages/KVStore/MultiRaft/RaftCommands.cpp:448\n       0x8aac45e\tDB::KVStore::handleWriteRaftCmdInner(DB::WriteCmdsView const&, unsigned long, unsigned long, unsigned long, DB::TMTContext&, std::__1::optional<DB::DM::RaftWriteResult>&) [tiflash+145409118]\n                \tdbms/src/Storages/KVStore/MultiRaft/RaftCommandsKVS.cpp:64\n       0x8aac2b4\tDB::KVStore::handleWriteRaftCmd(DB::WriteCmdsView const&, unsigned long, unsigned long, unsigned long, DB::TMTContext&) [tiflash+145408692]\n                \tdbms/src/Storages/KVStore/MultiRaft/RaftCommandsKVS.cpp:43\n       0x8a5c515\tHandleWriteRaftCmd [tiflash+145081621]\n                \tdbms/src/Storages/KVStore/FFI/ProxyFFI.cpp:98\n  0x7f5b4475c74a\t_$LT$engine_store_ffi..observer..TiFlashObserver$LT$T$C$ER$GT$$u20$as$u20$raftstore..coprocessor..QueryObserver$GT$::post_exec_query::h5a1f1b756b564202 [libtiflash_proxy.so+26842954]\n  0x7f5b457cb0dd\traftstore::store::fsm::apply::ApplyDelegate$LT$EK$GT$::apply_raft_cmd::hc241bbf5517beb31 [libtiflash_proxy.so+44073181]\n  0x7f5b457e4acf\traftstore::store::fsm::apply::ApplyDelegate$LT$EK$GT$::process_raft_cmd::h7a47a865be4fd30e [libtiflash_proxy.so+44178127]\n  0x7f5b457e77b4\traftstore::store::fsm::apply::ApplyDelegate$LT$EK$GT$::handle_raft_committed_entries::h63bee235686cb7ba [libtiflash_proxy.so+44189620]\n  0x7f5b457bb51c\traftstore::store::fsm::apply::ApplyFsm$LT$EK$GT$::handle_apply::h3cd768b362e8f910 [libtiflash_proxy.so+44008732]\n  0x7f5b457bfaa2\traftstore::store::fsm::apply::ApplyFsm$LT$EK$GT$::handle_tasks::h07dbf9e3d7892e28 [libtiflash_proxy.so+44026530]\n  0x7f5b44860e1e\t_$LT$raftstore..store..fsm..apply..ApplyPoller$LT$EK$GT$$u20$as$u20$batch_system..batch..PollHandler$LT$raftstore..store..fsm..apply..ApplyFsm$LT$EK$GT$$C$raftstore..store..fsm..apply..ControlFsm$GT$$GT$::handle_normal::hb066bfcc6a574726 [libtiflash_proxy.so+27909662]\n  0x7f5b447c2b43\tbatch_system::batch::Poller$LT$N$C$C$C$Handler$GT$::poll::hd4fd3db00dda0f31 [libtiflash_proxy.so+27261763]\n  0x7f5b448c6c80\tstd::sys_common::backtrace::__rust_begin_short_backtrace::h094c19a0a60889e5 [libtiflash_proxy.so+28327040]\n  0x7f5b4491221e\tcore::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h48c8c59d41668781 [libtiflash_proxy.so+28635678]\n  0x7f5b46002075\tstd::sys::unix::thread::Thread::new::thread_start::hd2791a9cabec1fda [libtiflash_proxy.so+52686965]\n                \t/rustc/96ddd32c4bfb1d78f0cd03eb068b1710a8cebeef/library/std/src/sys/unix/thread.rs:108\n  0x7f5b42a92802\tstart_thread [libc.so.6+653314]\n  0x7f5b42a32314\t__clone [libc.so.6+258836]"] [source="DB::EngineStoreApplyRes DB::HandleWriteRaftCmd(const DB::EngineStoreServerWrap *, DB::WriteCmdsView, DB::RaftCmdHeader)"] [thread_id=62]
[2023/11/22 19:42:04.898 +08:00] [ERROR] [BaseDaemon.cpp:370] [########################################] [source=BaseDaemon] [thread_id=2575]
[2023/11/22 19:42:04.898 +08:00] [ERROR] [BaseDaemon.cpp:371] ["(from thread 2) Received signal Segmentation fault(11)."] [source=BaseDaemon] [thread_id=2575]
[2023/11/22 19:42:04.898 +08:00] [ERROR] [BaseDaemon.cpp:401] ["Address: 0x30"] [source=BaseDaemon] [thread_id=2575]
[2023/11/22 19:42:04.898 +08:00] [ERROR] [BaseDaemon.cpp:407] ["Access: read."] [source=BaseDaemon] [thread_id=2575]
[2023/11/22 19:42:04.898 +08:00] [ERROR] [BaseDaemon.cpp:416] ["Address not mapped to object."] [source=BaseDaemon] [thread_id=2575]
[2023/11/22 19:42:04.926 +08:00] [ERROR] [BaseDaemon.cpp:563] ["\n       0x7771a81\tfaultSignalHandler(int, siginfo_t*, void*) [tiflash+125246081]\n                \tlibs/libdaemon/src/BaseDaemon.cpp:214\n  0x7f5b42a47df0\t<unknown symbol> [libc.so.6+347632]\n       0x7725371\tstd::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__thread_id, void*>*> std::__1::__hash_table<std::__1::__thread_id, std::__1::hash<std::__1::__thread_id>, std::__1::equal_to<std::__1::__thread_id>, std::__1::allocator<std::__1::__thread_id> >::find<std::__1::__thread_id>(std::__1::__thread_id const&) const [tiflash+124932977]\n                \t/usr/local/bin/../include/c++/v1/__hash_table:2425\n       0x7690b82\tDB::DM::DMFileBlockInputStreamBuilder::build(std::__1::shared_ptr<DB::DM::DMFile> const&, std::__1::vector<DB::DM::ColumnDefine, std::__1::allocator<DB::DM::ColumnDefine> > const&, std::__1::vector<DB::DM::RowKeyRange, std::__1::allocator<DB::DM::RowKeyRange> > const&, std::__1::shared_ptr<DB::DM::ScanContext> const&) [tiflash+124324738]\n                \tdbms/src/Storages/DeltaMerge/File/DMFileBlockInputStream.cpp:64\n       0x7634a43\tDB::DM::StableValueSpace::Snapshot::getInputStream(DB::DM::DMContext const&, std::__1::vector<DB::DM::ColumnDefine, std::__1::allocator<DB::DM::ColumnDefine> > const&, std::__1::vector<DB::DM::RowKeyRange, std::__1::allocator<DB::DM::RowKeyRange> > const&, std::__1::shared_ptr<DB::DM::RSOperator> const&, unsigned long, unsigned long, bool, bool, bool, std::__1::vector<std::__1::shared_ptr<std::__1::set<unsigned long, std::__1::less<unsigned long>, std::__1::allocator<unsigned long> > >, std::__1::allocator<std::__1::shared_ptr<std::__1::set<unsigned long, std::__1::less<unsigned long>, std::__1::allocator<unsigned long> > > > > const&, bool) [tiflash+123947587]\n                \tdbms/src/Storages/DeltaMerge/StableValueSpace.cpp:480\n       0x7595558\tDB::DM::Segment::getBitmapFilterInputStream(DB::DM::DMContext const&, std::__1::vector<DB::DM::ColumnDefine, std::__1::allocator<DB::DM::ColumnDefine> > const&, std::__1::shared_ptr<DB::DM::SegmentSnapshot> const&, std::__1::vector<DB::DM::RowKeyRange, std::__1::allocator<DB::DM::RowKeyRange> > const&, std::__1::shared_ptr<DB::DM::PushDownFilter> const&, unsigned long, unsigned long, unsigned long) [tiflash+123295064]\n                \tdbms/src/Storages/DeltaMerge/Segment.cpp:3173\n       0x7592ddd\tDB::DM::Segment::getInputStream(DB::DM::ReadMode const&, DB::DM::DMContext const&, std::__1::vector<DB::DM::ColumnDefine, std::__1::allocator<DB::DM::ColumnDefine> > const&, std::__1::shared_ptr<DB::DM::SegmentSnapshot> const&, std::__1::vector<DB::DM::RowKeyRange, std::__1::allocator<DB::DM::RowKeyRange> > const&, std::__1::shared_ptr<DB::DM::PushDownFilter> const&, unsigned long, unsigned long) [tiflash+123284957]\n                \tdbms/src/Storages/DeltaMerge/Segment.cpp:800\n       0x760df50\tDB::DM::SegmentReadTask::doInitInputStream(std::__1::vector<DB::DM::ColumnDefine, std::__1::allocator<DB::DM::ColumnDefine> > const&, unsigned long, std::__1::shared_ptr<DB::DM::PushDownFilter> const&, DB::DM::ReadMode, unsigned long) [tiflash+123789136]\n                \tdbms/src/Storages/DeltaMerge/SegmentReadTask.cpp:293\n       0x760dc50\tDB::DM::SegmentReadTask::doInitInputStreamWithErrorFallback(std::__1::vector<DB::DM::ColumnDefine, std::__1::allocator<DB::DM::ColumnDefine> > const&, unsigned long, std::__1::shared_ptr<DB::DM::PushDownFilter> const&, DB::DM::ReadMode, unsigned long, bool) [tiflash+123788368]\n                \tdbms/src/Storages/DeltaMerge/SegmentReadTask.cpp:262\n       0x760db13\tDB::DM::SegmentReadTask::initInputStream(std::__1::vector<DB::DM::ColumnDefine, std::__1::allocator<DB::DM::ColumnDefine> > const&, unsigned long, std::__1::shared_ptr<DB::DM::PushDownFilter> const&, DB::DM::ReadMode, unsigned long, bool) [tiflash+123788051]\n                \tdbms/src/Storages/DeltaMerge/SegmentReadTask.cpp:231\n       0x7626105\tDB::DM::SegmentReadTaskPool::buildInputStream(std::__1::shared_ptr<DB::DM::SegmentReadTask>&) [tiflash+123887877]\n                \tdbms/src/Storages/DeltaMerge/SegmentReadTaskPool.cpp:97\n       0x771b9db\tDB::DM::MergedTask::initOnce() [tiflash+124893659]\n                \tdbms/src/Storages/DeltaMerge/ReadThread/MergedTask.cpp:54\n       0x77237d7\tDB::DM::SegmentReader::run() [tiflash+124925911]\n                \tdbms/src/Storages/DeltaMerge/ReadThread/SegmentReader.cpp:149\n       0x7724e92\tvoid* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (DB::DM::SegmentReader::*)(), DB::DM::SegmentReader*> >(void*) [tiflash+124931730]\n                \t/usr/local/bin/../include/c++/v1/thread:291\n  0x7f5b42a92802\tstart_thread [libc.so.6+653314]"] [source=BaseDaemon] [thread_id=2575]

@Lloyd-Pottiger
Copy link
Contributor

TEST_F(RegionBlockReaderTest, ReadFromRegion2)
try
{
    TableInfo table_info(
        R"json({"id":2686,"name":{"O":"stock","L":"stock"},"charset":"utf8mb4","collate":"utf8mb4_bin","cols":[{"id":1,"name":{"O":"s_i_id","L":"s_i_id"},"offset":0,"origin_default":null,"origin_default_bit":null,"default":null,"default_bit":null,"default_is_expr":false,"generated_expr_string":"","generated_stored":false,"dependences":null,"type":{"Tp":3,"Flag":4099,"Flen":11,"Decimal":0,"Charset":"binary","Collate":"binary","Elems":null,"ElemsIsBinaryLit":null,"Array":false},"state":5,"comment":"","hidden":false,"change_state_info":null,"version":2},{"id":2,"name":{"O":"s_w_id","L":"s_w_id"},"offset":1,"origin_default":null,"origin_default_bit":null,"default":null,"default_bit":null,"default_is_expr":false,"generated_expr_string":"","generated_stored":false,"dependences":null,"type":{"Tp":3,"Flag":4099,"Flen":11,"Decimal":0,"Charset":"binary","Collate":"binary","Elems":null,"ElemsIsBinaryLit":null,"Array":false},"state":5,"comment":"","hidden":false,"change_state_info":null,"version":2},{"id":3,"name":{"O":"s_quantity","L":"s_quantity"},"offset":2,"origin_default":null,"origin_default_bit":null,"default":null,"default_bit":null,"default_is_expr":false,"generated_expr_string":"","generated_stored":false,"dependences":null,"type":{"Tp":3,"Flag":0,"Flen":11,"Decimal":0,"Charset":"binary","Collate":"binary","Elems":null,"ElemsIsBinaryLit":null,"Array":false},"state":5,"comment":"","hidden":false,"change_state_info":null,"version":2},{"id":4,"name":{"O":"s_dist_01","L":"s_dist_01"},"offset":3,"origin_default":null,"origin_default_bit":null,"default":null,"default_bit":null,"default_is_expr":false,"generated_expr_string":"","generated_stored":false,"dependences":null,"type":{"Tp":254,"Flag":0,"Flen":24,"Decimal":0,"Charset":"utf8mb4","Collate":"utf8mb4_bin","Elems":null,"ElemsIsBinaryLit":null,"Array":false},"state":5,"comment":"","hidden":false,"change_state_info":null,"version":2},{"id":5,"name":{"O":"s_dist_02","L":"s_dist_02"},"offset":4,"origin_default":null,"origin_default_bit":null,"default":null,"default_bit":null,"default_is_expr":false,"generated_expr_string":"","generated_stored":false,"dependences":null,"type":{"Tp":254,"Flag":0,"Flen":24,"Decimal":0,"Charset":"utf8mb4","Collate":"utf8mb4_bin","Elems":null,"ElemsIsBinaryLit":null,"Array":false},"state":5,"comment":"","hidden":false,"change_state_info":null,"version":2},{"id":6,"name":{"O":"s_dist_03","L":"s_dist_03"},"offset":5,"origin_default":null,"origin_default_bit":null,"default":null,"default_bit":null,"default_is_expr":false,"generated_expr_string":"","generated_stored":false,"dependences":null,"type":{"Tp":254,"Flag":0,"Flen":24,"Decimal":0,"Charset":"utf8mb4","Collate":"utf8mb4_bin","Elems":null,"ElemsIsBinaryLit":null,"Array":false},"state":5,"comment":"","hidden":false,"change_state_info":null,"version":2},{"id":7,"name":{"O":"s_dist_04","L":"s_dist_04"},"offset":6,"origin_default":null,"origin_default_bit":null,"default":null,"default_bit":null,"default_is_expr":false,"generated_expr_string":"","generated_stored":false,"dependences":null,"type":{"Tp":254,"Flag":0,"Flen":24,"Decimal":0,"Charset":"utf8mb4","Collate":"utf8mb4_bin","Elems":null,"ElemsIsBinaryLit":null,"Array":false},"state":5,"comment":"","hidden":false,"change_state_info":null,"version":2},{"id":8,"name":{"O":"s_dist_05","L":"s_dist_05"},"offset":7,"origin_default":null,"origin_default_bit":null,"default":null,"default_bit":null,"default_is_expr":false,"generated_expr_string":"","generated_stored":false,"dependences":null,"type":{"Tp":254,"Flag":0,"Flen":24,"Decimal":0,"Charset":"utf8mb4","Collate":"utf8mb4_bin","Elems":null,"ElemsIsBinaryLit":null,"Array":false},"state":5,"comment":"","hidden":false,"change_state_info":null,"version":2},{"id":9,"name":{"O":"s_dist_06","L":"s_dist_06"},"offset":8,"origin_default":null,"origin_default_bit":null,"default":null,"default_bit":null,"default_is_expr":false,"generated_expr_string":"","generated_stored":false,"dependences":null,"type":{"Tp":254,"Flag":0,"Flen":24,"Decimal":0,"Charset":"utf8mb4","Collate":"utf8mb4_bin","Elems":null,"ElemsIsBinaryLit":null,"Array":false},"state":5,"comment":"","hidden":false,"change_state_info":null,"version":2},{"id":10,"name":{"O":"s_dist_07","L":"s_dist_07"},"offset":9,"origin_default":null,"origin_default_bit":null,"default":null,"default_bit":null,"default_is_expr":false,"generated_expr_string":"","generated_stored":false,"dependences":null,"type":{"Tp":254,"Flag":0,"Flen":24,"Decimal":0,"Charset":"utf8mb4","Collate":"utf8mb4_bin","Elems":null,"ElemsIsBinaryLit":null,"Array":false},"state":5,"comment":"","hidden":false,"change_state_info":null,"version":2},{"id":11,"name":{"O":"s_dist_08","L":"s_dist_08"},"offset":10,"origin_default":null,"origin_default_bit":null,"default":null,"default_bit":null,"default_is_expr":false,"generated_expr_string":"","generated_stored":false,"dependences":null,"type":{"Tp":254,"Flag":0,"Flen":24,"Decimal":0,"Charset":"utf8mb4","Collate":"utf8mb4_bin","Elems":null,"ElemsIsBinaryLit":null,"Array":false},"state":5,"comment":"","hidden":false,"change_state_info":null,"version":2},{"id":12,"name":{"O":"s_dist_09","L":"s_dist_09"},"offset":11,"origin_default":null,"origin_default_bit":null,"default":null,"default_bit":null,"default_is_expr":false,"generated_expr_string":"","generated_stored":false,"dependences":null,"type":{"Tp":254,"Flag":0,"Flen":24,"Decimal":0,"Charset":"utf8mb4","Collate":"utf8mb4_bin","Elems":null,"ElemsIsBinaryLit":null,"Array":false},"state":5,"comment":"","hidden":false,"change_state_info":null,"version":2},{"id":13,"name":{"O":"s_dist_10","L":"s_dist_10"},"offset":12,"origin_default":null,"origin_default_bit":null,"default":null,"default_bit":null,"default_is_expr":false,"generated_expr_string":"","generated_stored":false,"dependences":null,"type":{"Tp":254,"Flag":0,"Flen":24,"Decimal":0,"Charset":"utf8mb4","Collate":"utf8mb4_bin","Elems":null,"ElemsIsBinaryLit":null,"Array":false},"state":5,"comment":"","hidden":false,"change_state_info":null,"version":2},{"id":14,"name":{"O":"s_ytd","L":"s_ytd"},"offset":13,"origin_default":null,"origin_default_bit":null,"default":null,"default_bit":null,"default_is_expr":false,"generated_expr_string":"","generated_stored":false,"dependences":null,"type":{"Tp":3,"Flag":0,"Flen":11,"Decimal":0,"Charset":"binary","Collate":"binary","Elems":null,"ElemsIsBinaryLit":null,"Array":false},"state":5,"comment":"","hidden":false,"change_state_info":null,"version":2},{"id":15,"name":{"O":"s_order_cnt","L":"s_order_cnt"},"offset":14,"origin_default":null,"origin_default_bit":null,"default":null,"default_bit":null,"default_is_expr":false,"generated_expr_string":"","generated_stored":false,"dependences":null,"type":{"Tp":3,"Flag":0,"Flen":11,"Decimal":0,"Charset":"binary","Collate":"binary","Elems":null,"ElemsIsBinaryLit":null,"Array":false},"state":5,"comment":"","hidden":false,"change_state_info":null,"version":2},{"id":16,"name":{"O":"s_remote_cnt","L":"s_remote_cnt"},"offset":15,"origin_default":null,"origin_default_bit":null,"default":null,"default_bit":null,"default_is_expr":false,"generated_expr_string":"","generated_stored":false,"dependences":null,"type":{"Tp":3,"Flag":0,"Flen":11,"Decimal":0,"Charset":"binary","Collate":"binary","Elems":null,"ElemsIsBinaryLit":null,"Array":false},"state":5,"comment":"","hidden":false,"change_state_info":null,"version":2},{"id":17,"name":{"O":"s_data","L":"s_data"},"offset":16,"origin_default":null,"origin_default_bit":null,"default":null,"default_bit":null,"default_is_expr":false,"generated_expr_string":"","generated_stored":false,"dependences":null,"type":{"Tp":15,"Flag":0,"Flen":50,"Decimal":0,"Charset":"utf8mb4","Collate":"utf8mb4_bin","Elems":null,"ElemsIsBinaryLit":null,"Array":false},"state":5,"comment":"","hidden":false,"change_state_info":null,"version":2},{"id":52,"name":{"O":"adc_31","L":"adc_31"},"offset":17,"origin_default":"2024-03-07 01:41:16","origin_default_bit":null,"default":"CURRENT_TIMESTAMP","default_bit":null,"default_is_expr":false,"generated_expr_string":"","generated_stored":false,"dependences":null,"type":{"Tp":7,"Flag":8320,"Flen":19,"Decimal":0,"Charset":"binary","Collate":"binary","Elems":null,"ElemsIsBinaryLit":null,"Array":false},"state":5,"comment":"","hidden":false,"change_state_info":null,"version":2},{"id":51,"name":{"O":"cct_2","L":"cct_2"},"offset":18,"origin_default":null,"origin_default_bit":null,"default":null,"default_bit":null,"default_is_expr":false,"generated_expr_string":"","generated_stored":false,"dependences":null,"type":{"Tp":3,"Flag":0,"Flen":11,"Decimal":0,"Charset":"binary","Collate":"binary","Elems":null,"ElemsIsBinaryLit":null,"Array":false},"state":2,"comment":"","hidden":false,"change_state_info":null,"version":2}],"index_info":[{"id":1,"idx_name":{"O":"PRIMARY","L":"primary"},"tbl_name":{"O":"","L":""},"idx_cols":[{"name":{"O":"s_w_id","L":"s_w_id"},"offset":1,"length":-1},{"name":{"O":"s_i_id","L":"s_i_id"},"offset":0,"length":-1}],"state":5,"backfill_state":0,"comment":"","index_type":1,"is_unique":true,"is_primary":true,"is_invisible":false,"is_global":false,"mv_index":false}],"constraint_info":null,"fk_info":[],"state":5,"pk_is_handle":false,"is_common_handle":false,"common_handle_version":0,"comment":"","auto_inc_id":100333471,"auto_id_cache":0,"auto_rand_id":0,"max_col_id":52,"max_idx_id":1,"max_fk_id":0,"max_cst_id":0,"update_timestamp":448208090270793850,"ShardRowIDBits":0,"max_shard_row_id_bits":0,"auto_random_bits":0,"auto_random_range_bits":0,"pre_split_regions":0,"partition":null,"compression":"","view":null,"sequence":null,"Lock":null,"version":3,"tiflash_replica":{"Count":2,"LocationLabels":[],"Available":true,"AvailablePartitionIDs":null},"is_columnar":false,"temp_table_type":0,"cache_table_status":0,"policy_ref_info":null,"stats_options":null,"exchange_partition_info":null,"ttl_info":null})json",
        NullspaceID);

    // the hex kv dump from logging
    std::tuple<std::string_view, std::string_view> kv = {
        "748000000000000AFF7E5F728000000001FF9A23B30000000000FAF9C7A51DD92FFF9E",
        "8000130000000102030405060708090A0B0C0D0E0F101133340400060007001F0037004F0067007F009700AF00C700DF00F700F800F900"
        "FA0023012B0133011319010007013A5857484A4B4A42564854415A41475850594B4A47544548494245515545494848465749415A4B5657"
        "4C494743504E47524D4B4E484C435641454E4C48454F4B58484D5741585942464647594748554352514F574541544E414C564E434D464D"
        "484D53505A4E57434B544658484A475859504B4B5A4E45514556424B435A475158465446465043575A5641444F4E594C4B594C43415445"
        "5449494D56494B4E4C47584B41504B5A4B484D4E46485A414F424F49494D4858475443435654484448544D484A5A504B4952444B4F4755"
        "50464F5A52444C48524F455A4F454F4D4C41444A4F414E4146494A5957424F4C4B4F562C080047504F42356A354D454F6F6C644F557443"
        "6576684D4D6B3756636444744474304C505775386974345A000000501ACEB219000000B825CEB219",
    };

    TiKVKey key(bytesFromHexString(std::get<0>(kv)));
    auto raw_key = std::get<0>(RecordKVFormat::decodeTiKVKeyFull(key));
    auto tidb_pk = RecordKVFormat::getRawTiDBPK(raw_key);
    Timestamp ts = 2;
    auto value = std::make_shared<const TiKVValue>(bytesFromHexString(std::get<1>(kv)));

    std::optional<RegionDataReadInfoList> data_list_read = std::make_optional(std::vector<RegionDataReadInfo>{
        {tidb_pk, static_cast<UInt8>(0), ts, value},
    });

    auto decoding_schema = getDecodingStorageSchemaSnapshot(table_info);
    {
        // force_decode=false can not decode because there are
        // missing value for column with primary key flag.
        auto reader = RegionBlockReader(decoding_schema);
        Block res_block = createBlockSortByColumnID(decoding_schema);
        EXPECT_FALSE(reader.read(res_block, *data_list_read, false));
    }
}
CATCH

@JaySon-Huang JaySon-Huang changed the title Tiflash carsh for address not mapped to object DB::Exception: Detected overflow when decoding integer of length 4 with column type Int16 Mar 18, 2024
@JaySon-Huang
Copy link
Contributor

This issue is a bug of tidb pingcap/tidb#53634. Have been fixed in the tidb-server side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants