-
Notifications
You must be signed in to change notification settings - Fork 410
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
Storages: New serialization/deserialization for DataTypeString #9608
base: master
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
9532cb2
to
a59e61a
Compare
/retest |
1c210d9
to
d664d5b
Compare
ee13f63
to
d925107
Compare
b69d8b3
to
5996395
Compare
What problem does this PR solve?
Issue Number: close #9673
Problem Summary:
What is changed and how it works?
This PR add a new storage format for string, which seperating sizes and chars into different streams, so that we can deserialize string objects in batch.
The new format is not enabled in this PR.
DefaultSerdesFormat
to enable it.For backward compatibility, this PR add a new name for new format, the old name is keepped for old format. Check
DataTypeString::getName()
for details.ColumnFileTiny
andDMFile
will store the name of data type in metadata and get the data type by name when restoring. So reading legacy string data is compatible.ERROR 1105 (HY000): other error for mpp stream: Code: 49, e.displayText() = DB::Exception: CHBlockChunkCodecV1 schema mismatch at column 1, expected String, actual StringV1, e.what() = DB::Exception
.Microbenchmark
sizeX
means the string size is about X bytes. To simulating variable length string, it is not strictly equal to X.none
/lz4
/lw
are the compression algorithm.none
means no compression.lz4
means use lz4 compression algorithm for sizes and chars.lw
means use lightweight compreesion algorithm for sizes, but still use lz4 for chars.Check List
Tests
Side effects
Documentation
Release note