vTuple.put(3, DatumFactory.createInt8(25l));
appender1.addTuple(vTuple);
}
appender1.close();
TableStats stat1 = appender1.getStats();
if (stat1 != null) {
assertEquals(tupleNum, stat1.getNumRows().longValue());
}
Path table2Path = new Path(testDir, storeType + "_2.data");
Appender appender2 = StorageManagerFactory.getStorageManager(conf).getAppender(meta, schema, table2Path);
appender2.enableStats();
appender2.init();
for(int i = 0; i < tupleNum; i++) {
vTuple = new VTuple(4);
vTuple.put(0, DatumFactory.createInt4(i + 1));
vTuple.put(1, DatumFactory.createText("hyunsik"));
vTuple.put(2, DatumFactory.createText("jihoon"));
vTuple.put(3, DatumFactory.createInt8(25l));
appender2.addTuple(vTuple);
}
appender2.close();
TableStats stat2 = appender2.getStats();
if (stat2 != null) {
assertEquals(tupleNum, stat2.getNumRows().longValue());
}
FileStatus status1 = fs.getFileStatus(table1Path);
FileStatus status2 = fs.getFileStatus(table2Path);