Skip to content

ORC-1767: [C++] Improve writing performance of encoded string column and support EncodedStringVectorBatch for StringColumnWriter - #16

Closed
taiyang-li wants to merge 1 commit into
ClickHouse:mainfrom
taiyang-li:contrib_bump_orc
Closed

taiyang-li wants to merge 1 commit into
ClickHouse:mainfrom
taiyang-li:contrib_bump_orc

Conversation

@taiyang-li

Copy link
Copy Markdown

What changes were proposed in this pull request?

ORC-1767: [C++] Improve writing performance of encoded string column and support EncodedStringVectorBatch for StringColumnWriter

Chery pick commit in apache/orc main branch: apache@97a3797

Why are the changes needed?

How was this patch tested?

@github-actions github-actions Bot added the CPP label Sep 4, 2024
…and support EncodedStringVectorBatch for StringColumnWriter

Improve writing performance of encoded string column and support EncodedStringVectorBatch for StringColumnWriter.
Performance was measured in ClickHouse#15

original tests.

Closes apache#2010 from taiyang-li/apache_improve_dict_write.

Lead-authored-by: taiyang-li <654010905@qq.com>
Co-authored-by: 李扬 <654010905@qq.com>
Signed-off-by: ffacs <ffacs520@gmail.com>
@taiyang-li

Copy link
Copy Markdown
Author

@alexey-milovidov can you help review it ? Thanks!

@nickitat nickitat self-assigned this Sep 9, 2024
@nickitat

nickitat commented Sep 9, 2024

Copy link
Copy Markdown
Member

i don't think cherry-picking is the right approach. we're better to maintain main branch in the state when it contains some prefix of upstream commits with our own patches on top.
in other words let's update the main to the current upstream HEAD

@taiyang-li

taiyang-li commented Sep 10, 2024 •

Copy link
Copy Markdown
Author

I tried, but there are so many conflicts after rebase ClickHouse main branch on apache main branch. I'm curious how it is done before? If we want to sync from upstream, which is preferred, git merge or git rebase ? I tried both ways but they all doesn't work. Hope for you suggestions, thanks!

@nickitat

Copy link
Copy Markdown
Member

I tried, but there are so many conflicts after rebase ClickHouse main branch on apache main branch. I'm curious how it is done before? If we want to sync from upstream, which is preferred, git merge or git rebase ? I tried both ways but they all doesn't work. Hope for you suggestions, thanks!

i made an attempt here: ClickHouse/ClickHouse#69473

@taiyang-li

taiyang-li commented Sep 11, 2024 •

Copy link
Copy Markdown
Author

@nickitat Thanks, but I'm afraid your example doesn't really solve the problems I met. It need to solve so many conflicts if you want to sync ClickHouse/orc with upstream apache/orc.

@nickitat

Copy link
Copy Markdown
Member

@nickitat Thanks, but I'm afraid your example doesn't really solve the problems I met. It need to solve so many conflicts if you want to sync ClickHouse/orc with upstream apache/orc.

contrib reset to a new commit that is upstream/main plus one our commit (two other no longer needed).
CH builds with it successfully. we only need to fix tests.
so what are those so many conflicts you're talking about?

@taiyang-li

Copy link
Copy Markdown
Author

@nickitat Thanks, but I'm afraid your example doesn't really solve the problems I met. It need to solve so many conflicts if you want to sync ClickHouse/orc with upstream apache/orc.

contrib reset to a new commit that is upstream/main plus one our commit (two other no longer needed). CH builds with it successfully. we only need to fix tests. so what are those so many conflicts you're talking about?

It will cause a lot of conflicts. Fixing them is nearly impossible.

git checkout ClickHouse/main
git rebase apache/main 

Cherry pick is a good idea if there are not too many commits of our own. BTW, which commits that are not contributed to upstream need to be cherry picked ?

@nickitat

Copy link
Copy Markdown
Member

@nickitat Thanks, but I'm afraid your example doesn't really solve the problems I met. It need to solve so many conflicts if you want to sync ClickHouse/orc with upstream apache/orc.

contrib reset to a new commit that is upstream/main plus one our commit (two other no longer needed). CH builds with it successfully. we only need to fix tests. so what are those so many conflicts you're talking about?

It will cause a lot of conflicts. Fixing them is nearly impossible.

git checkout ClickHouse/main
git rebase apache/main 

Cherry pick is a good idea if there are not too many commits of our own. BTW, which commits that are not contributed to upstream need to be cherry picked ?

what i'm saying is that i did this exercise yesterday. the only conflicting files were c++/src/Options.hh, c++/src/sargs/ExpressionTree.cc, c++/src/sargs/PredicateLeaf.cc afair.

you may see here that from our own commits only one (yours) was preserved after rebase. the other two contained upstreamed fixes.

Screenshot 2024-09-11 at 13 37 39

so i don't think we have any problems with the conflicts. only with tests

@taiyang-li

Copy link
Copy Markdown
Author

@nickitat will you merge #17 ? If the answer if yes, I'll close current PR. All I need is the newest commits from upstream.

@taiyang-li
taiyang-li marked this pull request as draft September 12, 2024 02:28
@nickitat

Copy link
Copy Markdown
Member

@nickitat will you merge #17 ? If the answer if yes, I'll close current PR. All I need is the newest commits from upstream.

yes, i just need to find some time to figure out test failures.

@taiyang-li

Copy link
Copy Markdown
Author

duplicated with #17

@taiyang-li taiyang-li closed this Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants