assertEquals(VoltType.FLOAT, item_data.getColumnType(4));
item_data.addRow("asdfsdgfsdg", 123L, "a", 45.0d, 656.2d);
}
public void testGetSchema() {
VoltTable item_data_template = new VoltTable(new ColumnInfo("i_name",
VoltType.STRING),
new ColumnInfo("s_quantity", VoltType.BIGINT), new ColumnInfo(
"brand_generic", VoltType.STRING), new ColumnInfo(
"i_price", VoltType.FLOAT), new ColumnInfo("ol_amount",
VoltType.FLOAT));
ColumnInfo[] cols = item_data_template.getTableSchema();
assertEquals(5, cols.length);
assertEquals("i_name", cols[0].name);
assertEquals("s_quantity", cols[1].name);