Skip to content

Commit

Permalink
[SPARK-1982] Support for ByteType and ShortType.
Browse files Browse the repository at this point in the history
  • Loading branch information
marmbrus authored and AndreSchumacher committed Jun 19, 2014
1 parent 3104886 commit f7aeba3
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,9 @@ private[parquet] object ParquetTypesConverter {
Some(ParquetPrimitiveTypeName.FIXED_LEN_BYTE_ARRAY)
case FloatType => Some(ParquetPrimitiveTypeName.FLOAT)
case IntegerType => Some(ParquetPrimitiveTypeName.INT32)
// There is no type for Byte or Short so we promote them to INT32.
case ShortType => Some(ParquetPrimitiveTypeName.INT32)
case ByteType => Some(ParquetPrimitiveTypeName.INT32)
case LongType => Some(ParquetPrimitiveTypeName.INT64)
case _ => None
}
Expand Down

0 comments on commit f7aeba3

Please sign in to comment.