Skip to content

Commit 024d829

Browse files
jayzhan211alamb
authored andcommitted
update query
Signed-off-by: jayzhan211 <jayzhan211@gmail.com>
1 parent 58a1fc8 commit 024d829

File tree

2 files changed

+3
-2
lines changed
  • benchmarks/queries/clickbench
  • datafusion/physical-plan/src/aggregates/group_values

2 files changed

+3
-2
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
SELECT "UserID", concat("SearchPhrase", 'helloworld21') as s, COUNT(*) FROM hits GROUP BY "UserID", s LIMIT 10;
1+
SELECT "UserID", "SearchPhrase", COUNT(*) FROM hits GROUP BY "UserID", "SearchPhrase" ORDER BY COUNT(*) DESC LIMIT 10;
22
SELECT "UserID", "SearchPhrase", COUNT(*) FROM hits GROUP BY "UserID", "SearchPhrase" LIMIT 10;
3+
SELECT "UserID", concat("SearchPhrase", repeat('hello', 100)) as s, COUNT(*) FROM hits GROUP BY "UserID", s LIMIT 10;

datafusion/physical-plan/src/aggregates/group_values/row.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ impl GroupValues for GroupValuesRows {
149149

150150
let mut group_values = match self.group_values.take() {
151151
Some(group_values) => group_values,
152-
None => self.row_converter.empty_rows(n_rows, 0),
152+
None => self.row_converter.empty_rows(0, 0),
153153
};
154154

155155
// tracks to which group each of the input rows belongs

0 commit comments

Comments
 (0)