}
private static List<Column> createColumnsList(QueryInfo queryInfo)
{
checkNotNull(queryInfo, "queryInfo is null");
StageInfo outputStage = queryInfo.getOutputStage();
if (outputStage == null) {
checkNotNull(outputStage, "outputStage is null");
}
List<String> names = queryInfo.getFieldNames();
List<Type> types = outputStage.getTypes();
checkArgument(names.size() == types.size(), "names and types size mismatch");
ImmutableList.Builder<Column> list = ImmutableList.builder();
for (int i = 0; i < names.size(); i++) {