if (status.hasResults()) {
List<ColumnDesc> schema = queryClient.getSchema(queryHandle);
String[] header = new String[schema.size()];
for (int i = 0; i < header.length; i++) {
ColumnDesc column = schema.get(i);
// Hive columns start at 1
int index = column.getPosition() - 1;
header[index] = column.getName() + ": " + column.getType();
}
List<QueryResult> results = queryClient.getResults(queryHandle, 20);
new AsciiTable<QueryResult>(header, results, new RowMaker<QueryResult>() {
@Override