public DataSchema getResultDataSchema() {
    return _resultDataSchema;
  }
@Test
  public void testLiteralTypeHandling() {
    QueryContext queryContext = QueryContextConverterUtils
        .getQueryContext("SELECT COUNT(*), 1 FROM testTable GROUP BY d1");
    DataSchema dataSchema =
        new DataSchema(new String[]{"d1", "count(*)"}, new ColumnDataType[]{ColumnDataType.INT, ColumnDataType.LONG});
    PostAggregationHandler postAggregationHandler = new PostAggregationHandler(queryContext, dataSchema);

    assertEquals(postAggregationHandler.getResultDataSchema().getColumnDataTypes(),
        new ColumnDataType[]{ColumnDataType.LONG, ColumnDataType.INT});

    queryContext = QueryContextConverterUtils
        .getQueryContext("SELECT COUNT(*), '1' FROM testTable GROUP BY d1");
    postAggregationHandler = new PostAggregationHandler(queryContext, dataSchema);
    assertEquals(postAggregationHandler.getResultDataSchema().getColumnDataTypes(),
        new ColumnDataType[]{ColumnDataType.LONG, ColumnDataType.STRING});
  }