Hi!
I’m trying to create workflow that reads data from Oracle 12c table and writes it to PostgreSQL table of the same structure.
I’ve put nodes into workflow as follows:
Database Connector
(oracle.jdbc.driver.OracleDriver)
Postgre SQL Connector
Database Reader
SELECT
src.*,
ROWNUM sa_sequence_number
FROM
jadro_faes.j_tpa src
Database Writer
Tables definition (simplified, most of columns omitted)
Oracle (source):
create table JADRO_FAES.J_TPA
(
TPA_ID NUMBER(10) not null
)
PostgreSQL (target):
create table fis.j_tpa
(
tpa_id bigint,
sa_sequence_number bigint
)
After I execute the workflow it fails with message:
ERROR Database Writer 3:2 Execute failed: java.lang.RuntimeException: Column “tpa_id” of type “Number (double)” from input does not match type “int8” in database at position 0
ERROR
I believe there must be a node for adjusting or casting column values or better a way how to read NUMBER(10) value from Oracle DB as an Integer value in KNIME.
Thanks in advance for any kind of help.