Updated on 2026-11-06 GMT+08:00

Paimon Data Types

Spark and Paimon support different type sets. Paimon automatically performs type conversions, but not all mapping types are supported. Therefore, you need to understand the type conversions in Paimon before designing the column types of a table. All Spark data types can be found in the org.apache.spark.sql.types package.

Table 1 Type conversion

Spark Data Type

Paimon Data Type

StructType

RowType

MapType

MapType

ArrayType

ArrayType

BooleanType

BooleanType

ByteType

TinyIntType

ShortType

SmallIntType

IntegerType

IntType

LongType

BigIntType

FloatType

FloatType

DoubleType

DoubleType

StringType

VarCharType(Integer.MAX_VALUE)

VarCharType(length)

VarCharType(length)

CharType(length)

CharType(length)

DateType

DateType

TimestampType

LocalZonedTimestampType

TimestampNTZType(Spark3.4+)

TimestampType

DecimalType(precision, scale)

DecimalType(precision, scale)

BinaryType

BinaryType

VariantType

VariantType