@Override
  public Object set(final Object o, final String string) {
    return new BytesWritable(
        string == null ? null : string.getBytes(StandardCharsets.UTF_8));
  }
The ParquetStringInspector inspects a BytesWritable, TimestampWritableV2, HiveDecimalWritable,
DoubleWritable, FloatWritable, LongWritable, IntWritable, and BooleanWritable to give a Text
or String.
ql/src/java/org/apache/hadoop/hive/ql/io/parquet/serde/primitive/ParquetStringInspector.java