AccumuloSerDeParameters params = new AccumuloSerDeParameters(new Configuration(), props,
AccumuloSerDe.class.getName());
rowIdFactory.init(params, props);
ColumnMapper columnMapper = params.getColumnMapper();
LazyAccumuloRow lazyRow = new LazyAccumuloRow(objectInspector);
AccumuloHiveRow hiveRow = new AccumuloHiveRow("1");
hiveRow.add("cf", "cq1", "foo".getBytes());
hiveRow.add("cf", "cq3", "bar".getBytes());
lazyRow.init(hiveRow, columnMapper.getColumnMappings(), rowIdFactory);
// Noticed that we also suffer from the same issue as HIVE-3179
// Only want to call a field init'ed when it's non-NULL
// Check it twice, make sure we get null both times
Assert.assertEquals("{'row':'1','1':'foo','2':null,'3':'bar'}".replace('\'', '"'),