Skip to content

Commit

Permalink
test: fix partitioning
Browse files Browse the repository at this point in the history
  • Loading branch information
evenyag committed Jul 15, 2024
1 parent af7b54f commit 22aa5d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/cases/standalone/optimizer/last_value.result
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ insert into t values
Affected Rows: 9

-- SQLNESS REPLACE (metrics.*) REDACTED
-- SQLNESS REPLACE (partitioning.*) REDACTED
explain analyze
select
last_value(host order by ts),
Expand All @@ -37,10 +38,10 @@ explain analyze
| 1 | 0 | ProjectionExec: expr=[last_value(t.host) ORDER BY [t.ts ASC NULLS LAST]@1 as last_value(t.host) ORDER BY [t.ts ASC NULLS LAST], last_value(t.not_pk) ORDER BY [t.ts ASC NULLS LAST]@2 as last_value(t.not_pk) ORDER BY [t.ts ASC NULLS LAST], last_value(t.val) ORDER BY [t.ts ASC NULLS LAST]@3 as last_value(t.val) ORDER BY [t.ts ASC NULLS LAST]] REDACTED
| | | AggregateExec: mode=FinalPartitioned, gby=[host@0 as host], aggr=[last_value(t.host) ORDER BY [t.ts ASC NULLS LAST], last_value(t.not_pk) ORDER BY [t.ts ASC NULLS LAST], last_value(t.val) ORDER BY [t.ts ASC NULLS LAST]] REDACTED
| | | CoalesceBatchesExec: target_batch_size=8192 REDACTED
| | | RepartitionExec: partitioning=Hash([host@0], 10), input_partitions=10 REDACTED
| | | RepartitionExec: REDACTED
| | | CoalesceBatchesExec: target_batch_size=8192 REDACTED
| | | AggregateExec: mode=Partial, gby=[host@1 as host], aggr=[last_value(t.host) ORDER BY [t.ts ASC NULLS LAST], last_value(t.not_pk) ORDER BY [t.ts ASC NULLS LAST], last_value(t.val) ORDER BY [t.ts ASC NULLS LAST]] REDACTED
| | | RepartitionExec: partitioning=RoundRobinBatch(10), input_partitions=3 REDACTED
| | | RepartitionExec: REDACTED
| | | SeqScan: partition_count=1 (1 memtable ranges, 0 file ranges), selector=LastRow REDACTED
| | | |
| | | Total rows: 4 |
Expand Down
1 change: 1 addition & 0 deletions tests/cases/standalone/optimizer/last_value.sql
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ insert into t values
(8, 'd', '🌕', 9.0);

-- SQLNESS REPLACE (metrics.*) REDACTED
-- SQLNESS REPLACE (partitioning.*) REDACTED
explain analyze
select
last_value(host order by ts),
Expand Down

0 comments on commit 22aa5d0

Please sign in to comment.