File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
sql/core/src/main/scala/org/apache/spark/sql/parquet Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -192,9 +192,9 @@ private[parquet] class RowWriteSupport extends WriteSupport[Row] with Logging {
192192 )
193193 )
194194 case IntegerType => writer.addInteger(value.asInstanceOf [Int ])
195- case ShortType => writer.addInteger(value.asInstanceOf [Int ])
195+ case ShortType => writer.addInteger(value.asInstanceOf [Short ])
196196 case LongType => writer.addLong(value.asInstanceOf [Long ])
197- case ByteType => writer.addInteger(value.asInstanceOf [Int ])
197+ case ByteType => writer.addInteger(value.asInstanceOf [Byte ])
198198 case DoubleType => writer.addDouble(value.asInstanceOf [Double ])
199199 case FloatType => writer.addFloat(value.asInstanceOf [Float ])
200200 case BooleanType => writer.addBoolean(value.asInstanceOf [Boolean ])
You can’t perform that action at this time.
0 commit comments