@Test
public void testTrendActionEmptyField() throws FoxtrotException, JsonProcessingException {

    TrendRequest trendRequest = new TrendRequest();
    trendRequest.setTable(TestUtils.TEST_TABLE_NAME);
    BetweenFilter betweenFilter = new BetweenFilter();
    betweenFilter.setFrom(1L);
    betweenFilter.setTo(System.currentTimeMillis());
    betweenFilter.setTemporal(true);
    betweenFilter.setField("_timestamp");
    trendRequest.setFilters(Collections.<Filter>singletonList(betweenFilter));
    trendRequest.setField("");
    trendRequest.setValues(Collections.<String>emptyList());
    try {
        getQueryExecutor().execute(trendRequest);
        fail();
    } catch (FoxtrotException ex) {
        assertEquals(ErrorCode.MALFORMED_QUERY, ex.getCode());
    }
}