@@ -51,6 +51,37 @@ back from the query. However, it must match the schema that comes back from the
5151except it can mark fields as nullable and can contain a subset of the fields.
5252
5353
54+ Data Types Mapping
55+ ----------
56+
57+ | Netezza Data Type | CDAP Schema Data Type | Comment |
58+ | ------------------------------ | --------------------- | -------------------------------------------------- |
59+ | BOOLEAN | boolean | |
60+ | BYTEINT | int | |
61+ | CHAR | string | |
62+ | DATE | date | |
63+ | NUMERIC, DECIMAL | decimal | |
64+ | FLOAT(1-6) | float | Floating point number with precision of 6 or less |
65+ | FLOAT(7-15) | double | Floating point number with precision of 7 - 15 |
66+ | REAL | float | Equivalent to FLOAT(6) |
67+ | DOUBLE PRECISION | double | |
68+ | INTEGER | int | |
69+ | SMALLINT | int | |
70+ | BIGINT | long | |
71+ | NCHAR | string | |
72+ | NVARCHAR | string | |
73+ | TIME | time | |
74+ | TIMETZ, TIME WITH TIME ZONE | string | |
75+ | | | |
76+ | TIMESTAMP | timestampt | |
77+ | VARCHAR | string | |
78+ | INTERVAL | string | |
79+ | VARBINARY | bytes | |
80+ | ST_GEOMETRY | bytes | |
81+
82+
83+
84+
5485Example
5586------
5687Suppose you want to read data from Netezza database named "prod" that is running on "localhost" port 5480,
@@ -73,9 +104,9 @@ Password: "testpwsd"
73104For example, if the 'id' column is a primary key of type int and the other columns are
74105non-nullable varchars, output records will have this schema:
75106
76- | field name | type |
77- | -------------- | ------------------- |
78- | id | int |
79- | name | string |
80- | email | string |
81- | phone | string |
107+ | field name | type |
108+ | -------------- | ------------------- |
109+ | id | int |
110+ | name | string |
111+ | email | string |
112+ | phone | string |
0 commit comments