Skip to content

Commit

Permalink
return emptylist
Browse files Browse the repository at this point in the history
  • Loading branch information
kgyrtkirk committed Oct 3, 2024
1 parent 8f9b808 commit 932d61d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public Sequence<RowsAndColumns> run(QueryPlus<RowsAndColumns> queryPlus, Respons

private void runTsQuery(QueryPlus<RowsAndColumns> queryPlus, TimeseriesQuery q, ResponseContext responseContext)
{
// FIXME: is passing the walker here correct?
QueryRunner<Result<TimeseriesResultValue>> runner = q.getRunner(walker);
Sequence<Result<TimeseriesResultValue>> res = runner.run(queryPlus.withQuery(q), responseContext);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@

import javax.annotation.Nullable;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;

Expand Down Expand Up @@ -143,7 +144,7 @@ static Object rowToObject(IndexedInts row, DimensionDictionarySelector selector)
{
int rowSize = row.size();
if (rowSize == 0) {
return null;
return Collections.emptyList();
} else if (rowSize == 1) {
return selector.lookupName(row.get(0));
} else {
Expand Down

0 comments on commit 932d61d

Please sign in to comment.