mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 18:12:02 +00:00
update test
This commit is contained in:
parent
114284bdce
commit
b35ff7e417
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user