String validationSelection = "L_ORDERKEY, L_PARTKEY, L_SUPPKEY, L_LINENUMBER, L_QUANTITY, L_EXTENDEDPRICE, L_DISCOUNT, L_TAX, " +
"L_RETURNFLAG, L_LINESTATUS, L_SHIPDATE,COMMITDATE ,RECEIPTDATE, L_SHIPINSTRUCT, L_SHIPMODE, L_COMMENT";
String inputTable = "cp.`tpch/lineitem.parquet`";
String query = String.format("SELECT %s FROM %s", selection, inputTable);
List<QueryResultBatch> expected = testSqlWithResults(query);
BatchSchema schema = null;
RecordBatchLoader loader = new RecordBatchLoader(getAllocator());
List<Map> expectedRecords = new ArrayList<>();
// read the data out of the results, the error manifested itself upon call of getObject on the vectors as they had contained deadbufs
addToMaterializedResults(expectedRecords, expected, loader, schema);
for (QueryResultBatch result : expected) {