📅  最后修改于: 2021-01-07 10:53:12             🧑  作者: 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] |