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.
| 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 |
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot