()
| 258 | } |
| 259 | |
| 260 | @Test |
| 261 | public void configureFromQueryGroupByAll() throws Exception { |
| 262 | setDataPointStorage(); |
| 263 | final TSQuery ts_query = getTSQuery(); |
| 264 | tags.clear(); |
| 265 | tags.put(TAGK_STRING, "*"); |
| 266 | ts_query.getQueries().get(0).setTags(tags); |
| 267 | ts_query.validateAndSetQuery(); |
| 268 | query = new TsdbQuery(tsdb); |
| 269 | query.configureFromQuery(ts_query, 0).joinUninterruptibly(); |
| 270 | |
| 271 | assertArrayEquals(METRIC_BYTES, ForTesting.getMetric(query)); |
| 272 | assertEquals(1, ForTesting.getFilters(query).size()); |
| 273 | assertEquals(1, ForTesting.getGroupBys(query).size()); |
| 274 | assertArrayEquals(TAGK_BYTES, |
| 275 | ForTesting.getGroupBys(query).get(0)); |
| 276 | assertEquals(1, ForTesting.getRowKeyLiterals(query).size()); |
| 277 | assertNull(ForTesting.getRowKeyLiterals(query).get(TAGV_BYTES)); |
| 278 | } |
| 279 | |
| 280 | @Test |
| 281 | public void configureFromQueryGroupByPipe() throws Exception { |
nothing calls this directly
no test coverage detected