Hi, I have a target table and source table which looks like the following:
Source: Postgres
Target: Oracle
Capture.JPG
I am doing the compare on the 2 table, 1:1 mapping. Given the datatype from source and target are identical. I run into the following error during the runtime:
Can anyone tell me what should be done to overcome this error?
Thanks!
Source: Postgres
Code:
CREATE TABLE sourcetable
(
id integer NOT NULL,
createtime timestamp(6) with time zone NOT NULL,
CONSTRAINT id_pkey PRIMARY KEY (id)
);
Code:
CREATE TABLE targettable
(
id integer NOT NULL,
createtime timestamp(6) with time zone NOT NULL,
CONSTRAINT id_pkey PRIMARY KEY (id)
)
I am doing the compare on the 2 table, 1:1 mapping. Given the datatype from source and target are identical. I run into the following error during the runtime:
Code:
2014/08/28 10:24:54 - Merge Rows (diff).0 - ERROR (version 5.1.0.0, build 1 from 2014-06-19_19-02-57 by buildguy) : Unexpected error
2014/08/28 10:24:54 - Merge Rows (diff).0 - ERROR (version 5.1.0.0, build 1 from 2014-06-19_19-02-57 by buildguy) : org.pentaho.di.core.exception.KettleException:
2014/08/28 10:24:54 - Merge Rows (diff).0 - Invalid layout detected in input streams, keys and values to merge have to be of identical structure and be in the same place in the rows
2014/08/28 10:24:54 - Merge Rows (diff).0 -
2014/08/28 10:24:54 - Merge Rows (diff).0 - The data type of field #2 is not the same as the first row received: you're mixing rows with different layout. Field [CREATETIME String] does not have the same data type as field [createtime Timestamp].
2014/08/28 10:24:54 - Merge Rows (diff).0 -
2014/08/28 10:24:54 - Merge Rows (diff).0 -
2014/08/28 10:24:54 - Merge Rows (diff).0 - at org.pentaho.di.trans.steps.mergerows.MergeRows.processRow(MergeRows.java:86)
2014/08/28 10:24:54 - Merge Rows (diff).0 - at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62)
2014/08/28 10:24:54 - Merge Rows (diff).0 - at java.lang.Thread.run(Thread.java:745)
2014/08/28 10:24:54 - Merge Rows (diff).0 - Caused by: org.pentaho.di.core.exception.KettleRowException:
2014/08/28 10:24:54 - Merge Rows (diff).0 - The data type of field #2 is not the same as the first row received: you're mixing rows with different layout. Field [CREATETIME String] does not have the same data type as field [createtime Timestamp].
2014/08/28 10:24:54 - Merge Rows (diff).0 -
2014/08/28 10:24:54 - Merge Rows (diff).0 - at org.pentaho.di.trans.step.BaseStep.safeModeChecking(BaseStep.java:2038)
2014/08/28 10:24:54 - Merge Rows (diff).0 - at org.pentaho.di.trans.steps.mergerows.MergeRows.checkInputLayoutValid(MergeRows.java:245)
2014/08/28 10:24:54 - Merge Rows (diff).0 - at org.pentaho.di.trans.steps.mergerows.MergeRows.processRow(MergeRows.java:84)
Can anyone tell me what should be done to overcome this error?
Thanks!