static String getColumnTypeName()

in kyuubi-hive-jdbc/src/main/java/org/apache/kyuubi/jdbc/hive/JdbcColumn.java [200:251]


  static String getColumnTypeName(TTypeId type) throws SQLException {
    switch (type) {
      case STRING_TYPE:
        return "string";
      case VARCHAR_TYPE:
        return "varchar";
      case CHAR_TYPE:
        return "char";
      case FLOAT_TYPE:
        return "float";
      case DOUBLE_TYPE:
        return "double";
      case BOOLEAN_TYPE:
        return "boolean";
      case TINYINT_TYPE:
        return "tinyint";
      case SMALLINT_TYPE:
        return "smallint";
      case INT_TYPE:
        return "int";
      case BIGINT_TYPE:
        return "bigint";
      case DATE_TYPE:
        return "date";
      case TIMESTAMP_TYPE:
        return "timestamp";
      case TIMESTAMPLOCALTZ_TYPE:
        return "timestamp with local time zone";
      case INTERVAL_YEAR_MONTH_TYPE:
        return "interval_year_month";
      case INTERVAL_DAY_TIME_TYPE:
        return "interval_day_time";
      case DECIMAL_TYPE:
        return "decimal";
      case BINARY_TYPE:
        return "binary";
      case MAP_TYPE:
        return "map";
      case ARRAY_TYPE:
        return "array";
      case STRUCT_TYPE:
        return "struct";
      case NULL_TYPE:
        return "void";
      case UNION_TYPE:
        return "uniontype";
      case USER_DEFINED_TYPE:
        return "user_defined";
      default:
        throw new KyuubiSQLException("Invalid column type: " + type);
    }
  }