Apache Pig supports many data types. A list of Apache Pig Data Types with description and examples are given below.
| 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] |
No comments:
Post a Comment