Skip to content

Commit

Permalink
Fix OpenTSDB#794 by making sure the group bys and row key literals li…
Browse files Browse the repository at this point in the history
…st is

not null before checking if it's empty.

Signed-off-by: Chris Larsen <clarsen@yahoo-inc.com>
  • Loading branch information
manolama committed Jun 2, 2016
1 parent 852c465 commit 1409b55
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/query/QueryUtil.java
Expand Up @@ -200,7 +200,8 @@ public static void setDataTableScanFilter(
final int end_time) {

// no-op
if (group_bys.isEmpty() && row_key_literals.isEmpty()) {
if ((group_bys == null || group_bys.isEmpty())
&& (row_key_literals == null || row_key_literals.isEmpty())) {
return;
}

Expand Down

0 comments on commit 1409b55

Please sign in to comment.