...
Code Block |
---|
/** * All {@link #Column} types supported by Sqoop. */ public enum ColumnType { ARRAY, BINARY, BIT, DATE, DATE_TIME, DECIMAL, ENUM, FIXED_POINT, FLOATING_POINT, MAP, SET, TEXT, TIME, UNKNOWN, ; } |
Warning |
---|
The following is the spec as per 1.99.5, Please do not edit this directly in future. If there is format spec change in future releases add a new section to highlight what changed. |
1.99.5 SQOOP CSV Format
Column Type | CSV Format | Notes | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NULL value in the field | public static final String NULL_FIELD = "NULL"; | |||||||||||||||||
ARRAY |
|
| ||||||||||||||||
BINARY | byte array enclosed in quotes and encoded with ISO-8859-1 charset | |||||||||||||||||
BIT | true, TRUE, 1 false, FALSE, 0 ( not encoded in quotes ) | Unsupported values should throw an exception | ||||||||||||||||
DATE | YYYY-MM-DD ( no time zone) | |||||||||||||||||
DATE_TIME | YYYY-MM-DD HH:MM:DD[.ZZZ][+/-XX] ( fraction and timezone are optional) | |||||||||||||||||
DECIMAL | Bigdecimal (not encoded in quotes ) | |||||||||||||||||
ENUM | Same as TEXT | |||||||||||||||||
FIXED_POINT | integer or long, ( not encoded in quotes ) | |||||||||||||||||
FLOATING_POINT | float or double ( not encoded in quotes ) | |||||||||||||||||
MAP |
| |||||||||||||||||
SET | same as ARRAY | |||||||||||||||||
TEXT | Entire string will be enclosed in single quotes and all bytes will be printed as they are will exception of following bytes
| |||||||||||||||||
TIME | HH:MM:DD[.ZZZ] ( fraction is optional ) | 3 digit milli second support only for time | ||||||||||||||||
UNKNOWN | same as BINARY |
1.99.5 SQOOP Object Format
SqoopDataUtils
exposes a few utility methods to use to convert into the sqoop expected object format.
...