Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 27 additions & 33 deletions oracle-plugin/docs/Oracle-batchsink.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,39 +59,33 @@ will be passed to the JDBC driver as connection arguments for JDBC drivers that

Data Types Mapping
----------

| Oracle Data Type | CDAP Schema Data Type | Comment |
| ------------------------------ | --------------------- | -----------------------------------------------------------|
| VARCHAR2 | string | |
| NVARCHAR2 | string | |
| VARCHAR | string | |
| NUMBER | string | For NUMBER types defined without a precision and scale. |
| | | Users can manually set output schema to map it to Decimal. |
| NUMBER | decimal | For NUMBER types defined with a precision and scale. |
| FLOAT | double | |
| LONG | string | |
| DATE | timestamp | |
| BINARY_FLOAT | float | |
| BINARY_DOUBLE | double | |
| TIMESTAMP | timestamp | |
| TIMESTAMP WITH TIME ZONE | string | Timestamp string in the following format: |
| | | "2019-07-15 15:57:46.65 GMT" |
| TIMESTAMP WITH LOCAL TIME ZONE | timestamp | |
| INTERVAL YEAR TO MONTH | string | Oracle's 'INTERVAL YEAR TO MONTH' literal in the |
| | | standard format: "year[-month]" |
| INTERVAL DAY TO SECOND | string | Oracle's 'INTERVAL DAY TO SECOND' literal in the |
| | | standard format: |
| | | "[day] [hour][:minutes][:seconds[.milliseconds]" |
| RAW | bytes | |
| LONG RAW | bytes | |
| ROWID | string | |
| UROWID | string | |
| CHAR | string | |
| NCHAR | string | |
| CLOB | string | |
| NCLOB | string | |
| BLOB | bytes | |
| BFILE | | BFILE data type is not supported for the sink |
| Oracle Data Type | CDAP Schema Data Type | Comment |
| ------------------------------ |-----------------------|--------------------------------------------------------------------------------------------------------------------|
| VARCHAR2 | string | |
| NVARCHAR2 | string | |
| VARCHAR | string | |
| NUMBER | string | For NUMBER types defined without a precision and scale. Users can manually set output schema to map it to Decimal. |
| NUMBER | decimal | For NUMBER types defined with a precision and scale. |
| FLOAT | double | |
| LONG | string | |
| DATE | timestamp | |
| BINARY_FLOAT | float | |
| BINARY_DOUBLE | double | |
| TIMESTAMP | datetime | Users can manually set output schema to map it to Timestamp. |
| TIMESTAMP WITH TIME ZONE | timestamp | Users can manually set output schema to map it to String. |
| TIMESTAMP WITH LOCAL TIME ZONE | datetime | Users can manually set output schema to map it to Timestamp. |
| INTERVAL YEAR TO MONTH | string | Oracle's 'INTERVAL YEAR TO MONTH' literal in the standard format: "year[-month]" |
| INTERVAL DAY TO SECOND | string | Oracle's 'INTERVAL DAY TO SECOND' literal in the standard format: "[day] [hour][:minutes][:seconds[.milliseconds]" |
| RAW | bytes | |
| LONG RAW | bytes | |
| ROWID | string | |
| UROWID | string | |
| CHAR | string | |
| NCHAR | string | |
| CLOB | string | |
| NCLOB | string | |
| BLOB | bytes | |
| BFILE | | BFILE data type is not supported for the sink |


Example
Expand Down
59 changes: 27 additions & 32 deletions oracle-plugin/docs/Oracle-batchsource.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,38 +73,33 @@ with the tradeoff of higher memory usage.

Data Types Mapping
----------

| Oracle Data Type | CDAP Schema Data Type | Comment |
| ------------------------------ | --------------------- | -----------------------------------------------------------|
| VARCHAR2 | string | |
| NVARCHAR2 | string | |
| VARCHAR | string | |
| NUMBER | string | For NUMBER types defined without a precision and scale. |
| | | Users can manually set output schema to map it to Decimal. |
| NUMBER | decimal | For NUMBER types defined with a precision and scale. |
| FLOAT | double | |
| LONG | string | |
| DATE | timestamp | |
| BINARY_FLOAT | float | |
| BINARY_DOUBLE | double | |
| TIMESTAMP | timestamp | |
| TIMESTAMP WITH TIME ZONE | string | |
| TIMESTAMP WITH LOCAL TIME ZONE | timestamp | |
| INTERVAL YEAR TO MONTH | string | |
| INTERVAL DAY TO SECOND | string | |
| RAW | bytes | |
| LONG RAW | bytes | |
| ROWID | string | |
| UROWID | string | |
| CHAR | string | |
| NCHAR | string | |
| CLOB | string | |
| NCLOB | string | |
| BLOB | bytes | |
| 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. |
| Oracle Data Type | CDAP Schema Data Type | Comment |
| ------------------------------ | --------------------- |----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| VARCHAR2 | string | |
| NVARCHAR2 | string | |
| VARCHAR | string | |
| NUMBER | string | For NUMBER types defined without a precision and scale. Users can manually set output schema to map it to Decimal. |
| NUMBER | decimal | For NUMBER types defined with a precision and scale. |
| FLOAT | double | |
| LONG | string | |
| DATE | timestamp | |
| BINARY_FLOAT | float | |
| BINARY_DOUBLE | double | |
| TIMESTAMP | datetime | Users can manually set output schema to map it to Timestamp. |
| TIMESTAMP WITH TIME ZONE | timestamp | Users can manually set output schema to map it to String. |
| TIMESTAMP WITH LOCAL TIME ZONE | datetime | Users can manually set output schema to map it to Timestamp. |
| INTERVAL YEAR TO MONTH | string | |
| INTERVAL DAY TO SECOND | string | |
| RAW | bytes | |
| LONG RAW | bytes | |
| ROWID | string | |
| UROWID | string | |
| CHAR | string | |
| NCHAR | string | |
| CLOB | string | |
| NCLOB | string | |
| BLOB | bytes | |
| 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. |


Example
Expand Down