You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
compare several times first to speed up the case that the partition end is very close.
If the partition key has a high cardinal number, the partition number will be huge and the performance lost by above mentioned is very significant.
Test step
createtablewin(s varchar(20));
insert into50000000 lines where`s` are all different.
explain analyze select row_number() over (partition by s) rn from win;
Enhancement
isDifferentFromPrevPartition
has some useless copies.tiflash/dbms/src/DataStreams/WindowBlockInputStream.cpp
Lines 127 to 132 in 2dd8483
compare several times first to speed up the case that the partition end is very close.
If the partition key has a high cardinal number, the partition number will be huge and the performance lost by above mentioned is very significant.
Test step
v6.5.0
Applying #6625.
The text was updated successfully, but these errors were encountered: