private static List<byte[]> getAvroRows() {
    int numRows = 10;
    List<byte[]> events;
    final DatumWriter<GenericRecord> writer = new SpecificDatumWriter<>(Wikipedia.getClassSchema());
    events = IntStream.rangeClosed(0, numRows)
        .mapToObj(i -> Wikipedia.newBuilder()
            // 1534736225090 -> 08/19/2018 20:37:05
            .setTimestamp(formatter.format(new Timestamp(1534736225090L + 1000 * 3600 * i)))
            .setAdded(i * 300).setDeleted(-i).setIsrobot(i % 2 == 0)
            .setChannel("chanel number " + i).setComment("comment number " + i).setCommentlength(i)
            .setDiffurl(String.format("url %s", i)).setFlags("flag").setIsminor(i % 2 > 0)
            .setIsanonymous(i % 3 != 0).setNamespace("namespace")
            .setIsunpatrolled(new Boolean(i % 3 == 0)).setIsnew(new Boolean(i % 2 > 0))
            .setPage(String.format("page is %s", i * 100)).setDelta(i).setDeltabucket(i * 100.4)
            .setUser("test-user-" + i).build())
        .map(genericRecord -> {
          java.io.ByteArrayOutputStream out = new java.io.ByteArrayOutputStream();
          BinaryEncoder encoder = EncoderFactory.get().binaryEncoder(out, null);
          try {
            writer.write(genericRecord, encoder);
            encoder.flush();
            out.close();
          } catch (IOException e) {
            throw new RuntimeException(e);
          }
          return out.toByteArray();
        }).collect(Collectors.toList());
    return events;
  }
Should deleted test tables have their data purged.

@return true if data should be purged
itests/util/src/main/java/org/apache/hadoop/hive/ql/QTestMiniClusters.java