Skip to content

Commit 29754d8

Browse files
Oracle Timestamp type documentation change (#389)
1 parent 66bf1ba commit 29754d8

File tree

2 files changed

+54
-65
lines changed

2 files changed

+54
-65
lines changed

oracle-plugin/docs/Oracle-batchsink.md

Lines changed: 27 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -59,39 +59,33 @@ will be passed to the JDBC driver as connection arguments for JDBC drivers that
5959

6060
Data Types Mapping
6161
----------
62-
63-
| Oracle Data Type | CDAP Schema Data Type | Comment |
64-
| ------------------------------ | --------------------- | -----------------------------------------------------------|
65-
| VARCHAR2 | string | |
66-
| NVARCHAR2 | string | |
67-
| VARCHAR | string | |
68-
| NUMBER | string | For NUMBER types defined without a precision and scale. |
69-
| | | Users can manually set output schema to map it to Decimal. |
70-
| NUMBER | decimal | For NUMBER types defined with a precision and scale. |
71-
| FLOAT | double | |
72-
| LONG | string | |
73-
| DATE | timestamp | |
74-
| BINARY_FLOAT | float | |
75-
| BINARY_DOUBLE | double | |
76-
| TIMESTAMP | timestamp | |
77-
| TIMESTAMP WITH TIME ZONE | string | Timestamp string in the following format: |
78-
| | | "2019-07-15 15:57:46.65 GMT" |
79-
| TIMESTAMP WITH LOCAL TIME ZONE | timestamp | |
80-
| INTERVAL YEAR TO MONTH | string | Oracle's 'INTERVAL YEAR TO MONTH' literal in the |
81-
| | | standard format: "year[-month]" |
82-
| INTERVAL DAY TO SECOND | string | Oracle's 'INTERVAL DAY TO SECOND' literal in the |
83-
| | | standard format: |
84-
| | | "[day] [hour][:minutes][:seconds[.milliseconds]" |
85-
| RAW | bytes | |
86-
| LONG RAW | bytes | |
87-
| ROWID | string | |
88-
| UROWID | string | |
89-
| CHAR | string | |
90-
| NCHAR | string | |
91-
| CLOB | string | |
92-
| NCLOB | string | |
93-
| BLOB | bytes | |
94-
| BFILE | | BFILE data type is not supported for the sink |
62+
| Oracle Data Type | CDAP Schema Data Type | Comment |
63+
| ------------------------------ |-----------------------|--------------------------------------------------------------------------------------------------------------------|
64+
| VARCHAR2 | string | |
65+
| NVARCHAR2 | string | |
66+
| VARCHAR | string | |
67+
| NUMBER | string | For NUMBER types defined without a precision and scale. Users can manually set output schema to map it to Decimal. |
68+
| NUMBER | decimal | For NUMBER types defined with a precision and scale. |
69+
| FLOAT | double | |
70+
| LONG | string | |
71+
| DATE | timestamp | |
72+
| BINARY_FLOAT | float | |
73+
| BINARY_DOUBLE | double | |
74+
| TIMESTAMP | datetime | Users can manually set output schema to map it to Timestamp. |
75+
| TIMESTAMP WITH TIME ZONE | timestamp | Users can manually set output schema to map it to String. |
76+
| TIMESTAMP WITH LOCAL TIME ZONE | datetime | Users can manually set output schema to map it to Timestamp. |
77+
| INTERVAL YEAR TO MONTH | string | Oracle's 'INTERVAL YEAR TO MONTH' literal in the standard format: "year[-month]" |
78+
| INTERVAL DAY TO SECOND | string | Oracle's 'INTERVAL DAY TO SECOND' literal in the standard format: "[day] [hour][:minutes][:seconds[.milliseconds]" |
79+
| RAW | bytes | |
80+
| LONG RAW | bytes | |
81+
| ROWID | string | |
82+
| UROWID | string | |
83+
| CHAR | string | |
84+
| NCHAR | string | |
85+
| CLOB | string | |
86+
| NCLOB | string | |
87+
| BLOB | bytes | |
88+
| BFILE | | BFILE data type is not supported for the sink |
9589

9690

9791
Example

oracle-plugin/docs/Oracle-batchsource.md

Lines changed: 27 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -73,38 +73,33 @@ with the tradeoff of higher memory usage.
7373

7474
Data Types Mapping
7575
----------
76-
77-
| Oracle Data Type | CDAP Schema Data Type | Comment |
78-
| ------------------------------ | --------------------- | -----------------------------------------------------------|
79-
| VARCHAR2 | string | |
80-
| NVARCHAR2 | string | |
81-
| VARCHAR | string | |
82-
| NUMBER | string | For NUMBER types defined without a precision and scale. |
83-
| | | Users can manually set output schema to map it to Decimal. |
84-
| NUMBER | decimal | For NUMBER types defined with a precision and scale. |
85-
| FLOAT | double | |
86-
| LONG | string | |
87-
| DATE | timestamp | |
88-
| BINARY_FLOAT | float | |
89-
| BINARY_DOUBLE | double | |
90-
| TIMESTAMP | timestamp | |
91-
| TIMESTAMP WITH TIME ZONE | string | |
92-
| TIMESTAMP WITH LOCAL TIME ZONE | timestamp | |
93-
| INTERVAL YEAR TO MONTH | string | |
94-
| INTERVAL DAY TO SECOND | string | |
95-
| RAW | bytes | |
96-
| LONG RAW | bytes | |
97-
| ROWID | string | |
98-
| UROWID | string | |
99-
| CHAR | string | |
100-
| NCHAR | string | |
101-
| CLOB | string | |
102-
| NCLOB | string | |
103-
| BLOB | bytes | |
104-
| BFILE | bytes | BFILE is a data type used to store a locator (link) |
105-
| | | to an external file, which is stored outside of the |
106-
| | | database. Only the locator will be read from an |
107-
| | | Oracle table and not the content of the external file. |
76+
| Oracle Data Type | CDAP Schema Data Type | Comment |
77+
| ------------------------------ | --------------------- |----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
78+
| VARCHAR2 | string | |
79+
| NVARCHAR2 | string | |
80+
| VARCHAR | string | |
81+
| NUMBER | string | For NUMBER types defined without a precision and scale. Users can manually set output schema to map it to Decimal. |
82+
| NUMBER | decimal | For NUMBER types defined with a precision and scale. |
83+
| FLOAT | double | |
84+
| LONG | string | |
85+
| DATE | timestamp | |
86+
| BINARY_FLOAT | float | |
87+
| BINARY_DOUBLE | double | |
88+
| TIMESTAMP | datetime | Users can manually set output schema to map it to Timestamp. |
89+
| TIMESTAMP WITH TIME ZONE | timestamp | Users can manually set output schema to map it to String. |
90+
| TIMESTAMP WITH LOCAL TIME ZONE | datetime | Users can manually set output schema to map it to Timestamp. |
91+
| INTERVAL YEAR TO MONTH | string | |
92+
| INTERVAL DAY TO SECOND | string | |
93+
| RAW | bytes | |
94+
| LONG RAW | bytes | |
95+
| ROWID | string | |
96+
| UROWID | string | |
97+
| CHAR | string | |
98+
| NCHAR | string | |
99+
| CLOB | string | |
100+
| NCLOB | string | |
101+
| BLOB | bytes | |
102+
| BFILE | bytes | BFILE is a data type used to store a locator (link) to an external file, which is stored outside of the database. Only the locator will be read from an Oracle table and not the content of the external file. |
108103

109104

110105
Example

0 commit comments

Comments
 (0)