From d8f070578ba3dba59b25662eef8cbf7806e7ab72 Mon Sep 17 00:00:00 2001 From: Brent Gardner Date: Fri, 4 Oct 2024 10:37:15 -0600 Subject: [PATCH] Failing test --- datafusion/sqllogictest/test_files/aggregates_topk.slt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/datafusion/sqllogictest/test_files/aggregates_topk.slt b/datafusion/sqllogictest/test_files/aggregates_topk.slt index 2209edc5d1fc..62d66795b26f 100644 --- a/datafusion/sqllogictest/test_files/aggregates_topk.slt +++ b/datafusion/sqllogictest/test_files/aggregates_topk.slt @@ -53,6 +53,12 @@ physical_plan 07)------------AggregateExec: mode=Partial, gby=[trace_id@0 as trace_id], aggr=[max(traces.timestamp)] 08)--------------MemoryExec: partitions=1, partition_sizes=[1] +query TI +select * from (select tid, MAX(timestamp) mts from traces t group by tid) where tid != 'a' order by mts desc limit 3; +---- +c 4 +b 3 +NULL 0 query TI select trace_id, MAX(timestamp) from traces group by trace_id order by MAX(timestamp) desc limit 4;