t2.clearRowData();
assertTrue(t2.getRowCount() == 0);
}
public void testExactTypes() {
VoltTable basecase = new VoltTable(new ColumnInfo("foo", VoltType.DECIMAL));
basecase.addRow(new BigDecimal(7654321).setScale(VoltDecimalHelper.kDefaultScale));
VoltTableRow basecaserow = basecase.fetchRow(0);
BigDecimal bd = basecaserow.getDecimalAsBigDecimal(0);
assertEquals(bd, new BigDecimal(7654321).setScale(VoltDecimalHelper.kDefaultScale));
t = new VoltTable(new ColumnInfo("foo", VoltType.DECIMAL));
addAllPrimitives(new Class[] { BigDecimal.class });
t2 = FastSerializableTestUtil.roundTrip(t);
assertEquals(2, t2.getRowCount());