Skip to content

Commit f64d1c7

Browse files
committed
Fix the row count in the query result
1 parent 52ac783 commit f64d1c7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,10 @@ fn execute_pyql_query(
280280
for evaluation_result in evaluations_results {
281281
let mut rows_count = 0;
282282
if let SelectedGroups(mut groups) = evaluation_result {
283-
rows_count += groups.len();
284-
printer.print(&mut groups);
283+
if !groups.is_empty() {
284+
rows_count += groups.groups[0].len();
285+
printer.print(&mut groups);
286+
};
285287
}
286288

287289
if arguments.analysis {

0 commit comments

Comments
 (0)