public static PrimitiveTypeInfo toHiveType(Type kuduType, ColumnTypeAttributes attributes)
      throws SerDeException {
    switch (kuduType) {
    case BOOL:
      return TypeInfoFactory.booleanTypeInfo;
    case INT8:
      return TypeInfoFactory.byteTypeInfo;
    case INT16:
      return TypeInfoFactory.shortTypeInfo;
    case INT32:
      return TypeInfoFactory.intTypeInfo;
    case INT64:
      return TypeInfoFactory.longTypeInfo;
    case UNIXTIME_MICROS:
      return TypeInfoFactory.timestampTypeInfo;
    case DECIMAL:
      return TypeInfoFactory.getDecimalTypeInfo(attributes.getPrecision(), attributes.getScale());
    case FLOAT:
      return TypeInfoFactory.floatTypeInfo;
    case DOUBLE:
      return TypeInfoFactory.doubleTypeInfo;
    case STRING:
      return TypeInfoFactory.stringTypeInfo;
    case BINARY:
      return TypeInfoFactory.binaryTypeInfo;
    default:
      throw new SerDeException("Unsupported column type: " + kuduType);
    }
  }
Returns the union of the configuration and table properties with the
table properties taking precedence.
kudu-handler/src/java/org/apache/hadoop/hive/kudu/KuduHiveUtils.java