update test

This commit is contained in:
lgbo-ustc 2024-08-02 15:33:31 +08:00
parent 114284bdce
commit b35ff7e417
3 changed files with 23 additions and 7 deletions

View File

@ -1341,13 +1341,6 @@ IProcessor::Status WindowTransform::prepare()
{
// Output the ready block.
const auto i = next_output_block_number - first_block_number;
LOG_ERROR(
getLogger("WindowTransform"),
"xxx {} output block: {}, next_output_block_number: {} first_not_ready_row.block: {}",
fmt::ptr(this),
i,
next_output_block_number,
first_not_ready_row.block);
auto & block = blocks[i];
auto columns = block.original_input_columns;
for (auto & res : block.output_columns)
@ -2158,6 +2151,7 @@ public:
frame.type = WindowFrame::FrameType::RANGE;
frame.begin_type = WindowFrame::BoundaryType::Unbounded;
frame.end_type = WindowFrame::BoundaryType::Unbounded;
//frame.end_type = WindowFrame::BoundaryType::Current;
return frame;
}

View File

@ -92,3 +92,14 @@ Kindle Fire Tablet 150 1 0
Samsung Galaxy Tab Tablet 200 2 0.5
iPad Tablet 700 3 1
Others Unknow 200 1 0
---- Q9 ----
0 1 0
1 2 1
2 3 2
3 4 3
4 5 4
5 6 5
6 7 6
7 8 7
8 9 8
9 10 9

View File

@ -124,3 +124,14 @@ ORDER BY
drop table product_groups;
drop table products;
select '---- Q9 ----';
select number, row_number, cast(percent_rank * 10000 as Int32) as percent_rank
from (
select number, row_number() over () as row_number, percent_rank() over (order by number) as percent_rank
from numbers(10000)
order by number
limit 10
)
settings max_block_size=100;