mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-24 18:50:49 +00:00
cleanup
This commit is contained in:
parent
773b364fe4
commit
1b6262f874
@ -585,7 +585,7 @@ static bool tryParseFrameDefinition(ASTWindowDefinition * node, IParser::Pos & p
|
||||
|
||||
if (keyword_preceding.ignore(pos, expected))
|
||||
{
|
||||
node->frame.begin_offset = - node->frame.begin_offset;
|
||||
node->frame.begin_offset = -node->frame.begin_offset;
|
||||
}
|
||||
else if (keyword_following.ignore(pos, expected))
|
||||
{
|
||||
|
@ -434,18 +434,15 @@ void WindowTransform::advanceFrameEndCurrentRow()
|
||||
|
||||
// fmt::print(stderr, "first row {} last {}\n", frame_end.row, rows_end);
|
||||
|
||||
// We could retreat the frame_end here, but for some reason I am reluctant
|
||||
// to do this... It would have better data locality.
|
||||
auto reference = current_row;
|
||||
// Advance frame_end while it is still peers with the current row.
|
||||
for (; frame_end.row < rows_end; ++frame_end.row)
|
||||
{
|
||||
if (!arePeers(reference, frame_end))
|
||||
if (!arePeers(current_row, frame_end))
|
||||
{
|
||||
// fmt::print(stderr, "{} and {} don't match\n", reference, frame_end);
|
||||
frame_ended = true;
|
||||
return;
|
||||
}
|
||||
reference = frame_end;
|
||||
}
|
||||
|
||||
// Might have gotten to the end of the current block, have to properly
|
||||
|
Loading…
Reference in New Issue
Block a user