Skip to content

Commit

Permalink
Fix type of MaterializedResult.getOnlyColumnAsSet
Browse files Browse the repository at this point in the history
  • Loading branch information
findepi committed Dec 21, 2017
1 parent 4ce94e0 commit a7fa6da
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -189,11 +189,11 @@ public String toString()
.toString();
}

public Set<String> getOnlyColumnAsSet()
public Set<Object> getOnlyColumnAsSet()
{
checkState(types.size() == 1, "result set must have exactly one column");
return rows.stream()
.map(row -> (String) row.getField(0))
.map(row -> row.getField(0))
.collect(toImmutableSet());
}

Expand Down

0 comments on commit a7fa6da

Please sign in to comment.