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

[FLASH-348] Add TMT Property To DataPart #121

Merged
merged 7 commits into from
Jul 23, 2019
Merged

[FLASH-348] Add TMT Property To DataPart #121

merged 7 commits into from
Jul 23, 2019

Conversation

solotzg
Copy link
Contributor

@solotzg solotzg commented Jul 22, 2019

add min max pk.

based on #119

@solotzg solotzg changed the title Add TMT Property To DataPart [FLASH-348] Add TMT Property To DataPart Jul 22, 2019
{
storage.data.delayInsertIfNeeded();

Row partition(1, Field(UInt64(partition_id)));
Block block_copy = block;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

block_copy = block is not bad, CH used it. block assignment is a small operating

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also keep the TxnMergeTreeBlockOutputStream::write(const Block & block)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we don't need to do move(block)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just provide another method.

inline TiKVKey encodeAsTiKVKey(const String & ori_str)
{
std::stringstream ss;
encodeAsTiKVKey(ori_str, ss);
EncodeBytes(ori_str, ss);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Start with lowercase

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In file storage/ch/dbms/src/Storages/Transaction/Codec.h, most function starts with uppercase. Maybe need to change all of them.

return p == 0;
}

inline std::tuple<std::string, size_t> decodeTiKVKeyFull(const TiKVKey & key)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need another reviewer to double check this function's modification

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hanfei1991
Copy link
Member

There is a tiny bug in EncodeBytes function when I wrote ddl branch. See https://github.com/pingcap/tics/pull/110/files#diff-56cb4a63b35a7383087298827d9269d5R296

@solotzg
Copy link
Contributor Author

solotzg commented Jul 22, 2019

/run-integration-tests

@hanfei1991
Copy link
Member

LGTM

Copy link
Contributor

@innerr innerr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@solotzg solotzg merged commit 9b4cbd6 into pingcap:master Jul 23, 2019
@solotzg solotzg deleted the part-min-max branch July 23, 2019 06:39
guo-shaoge added a commit to guo-shaoge/tiflash that referenced this pull request Nov 29, 2023
Signed-off-by: guo-shaoge <shaoge1994@163.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants