2727import org .junit .After ;
2828import org .junit .Assert ;
2929import org .junit .Before ;
30- import org .junit .Ignore ;
3130import org .junit .Test ;
3231import org .junit .experimental .categories .Category ;
3332import org .junit .runners .Parameterized ;
@@ -238,7 +237,6 @@ public void testShowTimeSeries() {
238237 }
239238
240239 @ Test
241- @ Ignore
242240 public void testCountTimeSeriesWithTimeConditionIncludesView () {
243241 try (Connection connection = EnvFactory .getEnv ().getConnection ();
244242 Statement statement = connection .createStatement ()) {
@@ -260,10 +258,23 @@ public void testCountTimeSeriesWithTimeConditionIncludesView() {
260258 statement ,
261259 "count timeseries root.view_count.** where time>0" ,
262260 new HashSet <>(Collections .singletonList ("2," )));
261+ checkResultSet (
262+ statement ,
263+ "show timeseries root.view_count.** where time>0" ,
264+ new HashSet <>(
265+ Arrays .asList (
266+ "root.view_count.src.s1,null,root.view_count,INT32,PLAIN,LZ4,null,null,null,null,BASE," ,
267+ "root.view_count.dst.v1,null,root.view_count,INT32,null,null,null,null,null,null,VIEW," )));
263268 checkResultSet (
264269 statement ,
265270 "count timeseries root.view_count.dst.** where time>0" ,
266271 new HashSet <>(Collections .singletonList ("1," )));
272+ checkResultSet (
273+ statement ,
274+ "show timeseries root.view_count.dst.** where time>0" ,
275+ new HashSet <>(
276+ Collections .singletonList (
277+ "root.view_count.dst.v1,null,root.view_count,INT32,null,null,null,null,null,null,VIEW," )));
267278 } catch (Exception e ) {
268279 e .printStackTrace ();
269280 Assert .fail (e .getMessage ());
0 commit comments