Skip to content

Commit 679d286

Browse files
committed
CDAP-15519 Netezza reference doc updated
1 parent dd090df commit 679d286

File tree

2 files changed

+67
-6
lines changed

2 files changed

+67
-6
lines changed

netezza-plugin/docs/Netezza-batchsink.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,36 @@ Properties
3636
**Connection Arguments:** A list of arbitrary string key/value pairs as connection arguments. These arguments
3737
will be passed to the JDBC driver as connection arguments for JDBC drivers that may need additional configurations.
3838

39+
40+
Data Types Mapping
41+
----------
42+
43+
| Netezza Data Type | CDAP Schema Data Type | Comment |
44+
| ------------------------------ | --------------------- | -------------------------------------------------- |
45+
| BOOLEAN | boolean | |
46+
| BYTEINT | int | |
47+
| CHAR | string | |
48+
| DATE | date | |
49+
| NUMERIC, DECIMAL | decimal | |
50+
| FLOAT(1-6) | float | Floating point number with precision of 6 or less |
51+
| FLOAT(7-15) | double | Floating point number with precision of 7 - 15 |
52+
| REAL | float | Equivalent to FLOAT(6) |
53+
| DOUBLE PRECISION | double | |
54+
| INTEGER | int | |
55+
| SMALLINT | int | |
56+
| BIGINT | long | |
57+
| NCHAR | string | |
58+
| NVARCHAR | string | |
59+
| TIME | time | |
60+
| TIMETZ, TIME WITH TIME ZONE | string | Time with time zone string literal in the |
61+
| | | following format: "13:24:16+03" |
62+
| TIMESTAMP | timestampt | |
63+
| VARCHAR | string | |
64+
| INTERVAL | string | |
65+
| VARBINARY | bytes | |
66+
| ST_GEOMETRY | bytes | |
67+
68+
3969
Example
4070
-------
4171
Suppose you want to write output records to "users" table of Netezza database named "prod" that is running on "localhost",

netezza-plugin/docs/Netezza-batchsource.md

Lines changed: 37 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,37 @@ back from the query. However, it must match the schema that comes back from the
5151
except 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+
5485
Example
5586
------
5687
Suppose you want to read data from Netezza database named "prod" that is running on "localhost" port 5480,
@@ -73,9 +104,9 @@ Password: "testpwsd"
73104
For example, if the 'id' column is a primary key of type int and the other columns are
74105
non-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

Comments
 (0)