title: Convert Parquet FIXED_LEN_BYTE_ARRAY into a DECIMAL in native Java map reduce
body: <p>My underlying data is written using HIVE output format (org.apache.hadoop.hive.ql.io.parquet.MapredParquetOutputFormat)</p>
  
  <p>Trying to read this data using native Java Map reduce</p>
  
  <pre><code>byte[] b = value.getBinary(value.getType().getFieldIndex(field), 0).getBytes();
  
  HiveDecimal hd = HiveDecimal.create(b, true);
  </code></pre>
  
  <p>value here is <code>org.apache.parquet.example.data.Group</code> type hd in this case becomes NULL.</p>
  
  <p>But below works just fine for string/int types.</p>
  
  <pre><code>value.getValueToString(value.getType().getFieldIndex(field), 0);
  </code></pre>