RecordBatchLoader batchLoader = new RecordBatchLoader(getAllocator());
for (QueryResultBatch result : results) {
batchLoader.load(result.getHeader().getDef(), result.getData());
if (batchLoader.getRecordCount() <= 0) {
result.release();
batchLoader.clear();
continue;
}
// Output columns and types
// 1. str1 : Var16Char
// 2. upperStr1 : NullableVar16Char