📅  最后修改于: 2020-12-03 08:57:55             🧑  作者: Mango
Apache Pig支持许多数据类型。下面给出了Apache Pig数据类型的列表以及说明和示例。
Type | Description | Example |
---|---|---|
Int | Signed 32 bit integer | 2 |
Long | Signed 64 bit integer | 15L or 15l |
Float | 32 bit floating point | 2.5f or 2.5F |
Double | 32 bit floating point | 1.5 or 1.5e2 or 1.5E2 |
charArray | Character array | hello javatpoint |
byteArray | BLOB(Byte array) | |
tuple | Ordered set of fields | (12,43) |
bag | Collection f tuples | {(12,43),(54,28)} |
map | collection of tuples | [open#apache] |