private static String createOutputTypeInfoFragment(String identifier, String outputTypeInfo) {
    if (identifier == null) {
      throw new RuntimeException("Received null input for the identifier");
    }
    switch (outputTypeInfo) {
    case "tinyint": {
      return identifier + "TinyInt";
    }
    case "smallint": {
      return identifier + "SmallInt";
    }
    case "int": {
      return identifier + "Int";
    }
    case "bigint": {
      return identifier + "BigInt";
    }
    case "float": {
      return identifier + "Float";
    }
    case "double": {
      return identifier + "Double";
    }
    default: {
      throw new RuntimeException("Unsupported input typeInfo " + outputTypeInfo);
    }
    }
  }
GenVectorTestCode.
This class is mutable and maintains a hashmap of TestSuiteClassName to test cases.
The tests cases are added over the course of vectorized expressions class generation,
with test classes being outputted at the end. For each column vector (inputs and/or outputs)
a matrix of pairwise covering Booleans is used to generate test cases across nulls and
repeating dimensions. Based on the input column vector(s) nulls and repeating states
the states of the output column vector (if there is one) is validated, along with the null
vector. For filter operations the selection vector is validated against the generated
data. Each template corresponds to a class representing a test suite.
vector-code-gen/src/org/apache/hadoop/hive/tools/GenVectorTestCode.java