Title: Field [starttime Date] does not have the same data type as field [starttime String(10)]. · Issue #169 · dalibo/sqlserver2pgsql · GitHub
Open Graph Title: Field [starttime Date] does not have the same data type as field [starttime String(10)]. · Issue #169 · dalibo/sqlserver2pgsql
X Title: Field [starttime Date] does not have the same data type as field [starttime String(10)]. · Issue #169 · dalibo/sqlserver2pgsql
Description: When running kitchen.sh -file=incremental.kjb I get an error on one of my tables. Running kettle with migration.kjb works without an error. Full error output: 2022/11/15 09:55:48 - Migration - Starting entry [Meter_TariffTime] 2022/11/15...
Open Graph Description: When running kitchen.sh -file=incremental.kjb I get an error on one of my tables. Running kettle with migration.kjb works without an error. Full error output: 2022/11/15 09:55:48 - Migration - Star...
X Description: When running kitchen.sh -file=incremental.kjb I get an error on one of my tables. Running kettle with migration.kjb works without an error. Full error output: 2022/11/15 09:55:48 - Migration - Star...
Opengraph URL: https://github.com/dalibo/sqlserver2pgsql/issues/169
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Field [starttime Date] does not have the same data type as field [starttime String(10)].","articleBody":"When running `kitchen.sh -file=incremental.kjb` I get an error on one of my tables. Running kettle with `migration.kjb` works without an error.\r\n\r\nFull error output:\r\n```\r\n2022/11/15 09:55:48 - Migration - Starting entry [Meter_TariffTime]\r\n2022/11/15 09:55:48 - Meter_TariffTime - Running transformation using the Kettle execution engine\r\n2022/11/15 09:55:48 - migration[Meter].[TariffTime] - Dispatching started for transformation [migration[Meter].[TariffTime]]\r\n2022/11/15 09:55:49 - Table input 2.0 - Finished reading query, closing connection.\r\n2022/11/15 09:55:49 - Table input.0 - Finished reading query, closing connection.\r\n2022/11/15 09:55:49 - User Defined Java Class.5 - Finished processing (I=0, O=0, R=78, W=78, U=0, E=0)\r\n2022/11/15 09:55:49 - User Defined Java Class.3 - Finished processing (I=0, O=0, R=78, W=78, U=0, E=0)\r\n2022/11/15 09:55:49 - User Defined Java Class.4 - Finished processing (I=0, O=0, R=78, W=78, U=0, E=0)\r\n2022/11/15 09:55:49 - User Defined Java Class.1 - Finished processing (I=0, O=0, R=78, W=78, U=0, E=0)\r\n2022/11/15 09:55:49 - User Defined Java Class.0 - Finished processing (I=0, O=0, R=78, W=78, U=0, E=0)\r\n2022/11/15 09:55:49 - User Defined Java Class.6 - Finished processing (I=0, O=0, R=78, W=78, U=0, E=0)\r\n2022/11/15 09:55:49 - User Defined Java Class.2 - Finished processing (I=0, O=0, R=78, W=78, U=0, E=0)\r\n2022/11/15 09:55:49 - User Defined Java Class.7 - Finished processing (I=0, O=0, R=78, W=78, U=0, E=0)\r\n2022/11/15 09:55:49 - Sort rows.1 - Finished processing (I=0, O=0, R=78, W=78, U=0, E=0)\r\n2022/11/15 09:55:49 - Sort rows.7 - Finished processing (I=0, O=0, R=78, W=78, U=0, E=0)\r\n2022/11/15 09:55:49 - Sort rows.2 - Finished processing (I=0, O=0, R=78, W=78, U=0, E=0)\r\n2022/11/15 09:55:49 - Sort rows 2.1 - Finished processing (I=0, O=0, R=78, W=78, U=0, E=0)\r\n2022/11/15 09:55:49 - Sort rows.4 - Finished processing (I=0, O=0, R=78, W=78, U=0, E=0)\r\n2022/11/15 09:55:49 - Sort rows 2.7 - Finished processing (I=0, O=0, R=78, W=78, U=0, E=0)\r\n2022/11/15 09:55:49 - Sort rows 2.4 - Finished processing (I=0, O=0, R=78, W=78, U=0, E=0)\r\n2022/11/15 09:55:49 - Sort rows 2.5 - Finished processing (I=0, O=0, R=78, W=78, U=0, E=0)\r\n2022/11/15 09:55:49 - Sort rows 2.6 - Finished processing (I=0, O=0, R=78, W=78, U=0, E=0)\r\n2022/11/15 09:55:49 - Sort rows 2.0 - Finished processing (I=0, O=0, R=78, W=78, U=0, E=0)\r\n2022/11/15 09:55:49 - Sort rows.6 - Finished processing (I=0, O=0, R=78, W=78, U=0, E=0)\r\n2022/11/15 09:55:49 - Sort rows.0 - Finished processing (I=0, O=0, R=78, W=78, U=0, E=0)\r\n2022/11/15 09:55:49 - Sort rows 2.3 - Finished processing (I=0, O=0, R=78, W=78, U=0, E=0)\r\n2022/11/15 09:55:49 - Sort rows 2.2 - Finished processing (I=0, O=0, R=78, W=78, U=0, E=0)\r\n2022/11/15 09:55:49 - Sort rows.5 - Finished processing (I=0, O=0, R=78, W=78, U=0, E=0)\r\n2022/11/15 09:55:49 - Table input.0 - Finished processing (I=624, O=0, R=0, W=624, U=0, E=0)\r\norg.pentaho.di.core.exception.KettleException: \r\nInvalid 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\r\n\r\nThe data type of field #4 is not the same as the first row received: you're mixing rows with different layout. Field [starttime Date] does not have the same data type as field [starttime String(10)].\r\n\r\n\r\n\tat org.pentaho.di.trans.steps.mergerows.MergeRows.processRow(MergeRows.java:101)\r\n\tat org.pentaho.di.trans.step.RunThread.run(RunThread.java:62)\r\n\tat java.lang.Thread.run(Thread.java:750)\r\nCaused by: org.pentaho.di.core.exception.KettleRowException: \r\nThe data type of field #4 is not the same as the first row received: you're mixing rows with different layout. Field [starttime Date] does not have the same data type as field [starttime String(10)].\r\n\r\n\tat org.pentaho.di.trans.step.BaseStep.safeModeChecking(BaseStep.java:2190)2022/11/15 09:55:49 - Table input 2.0 - Finished processing (I=624, O=0, R=0, W=624, U=0, E=0)\r\n\r\n\tat org.pentaho.di.trans.steps.mergerows.MergeRows.checkInputLayoutValid(MergeRows.java:265)\r\n\tat org.pentaho.di.trans.steps.mergerows.MergeRows.processRow(MergeRows.java:99)\r\n\t... 2 more\r\n2022/11/15 09:55:49 - Merge Rows (diff).0 - ERROR (version 9.1.0.0-324, build 9.1.0.0-324 from 2020-09-07 05.09.05 by buildguy) : Unexpected error\r\n2022/11/15 09:55:49 - Merge Rows (diff).0 - ERROR (version 9.1.0.0-324, build 9.1.0.0-324 from 2020-09-07 05.09.05 by buildguy) : org.pentaho.di.core.exception.KettleException: \r\n2022/11/15 09:55:49 - 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\r\n2022/11/15 09:55:49 - Merge Rows (diff).0 - \r\n2022/11/15 09:55:49 - Merge Rows (diff).0 - The data type of field #4 is not the same as the first row received: you're mixing rows with different layout. Field [starttime Date] does not have the same data type as field [starttime String(10)].\r\n2022/11/15 09:55:49 - Merge Rows (diff).0 - \r\n2022/11/15 09:55:49 - Merge Rows (diff).0 - \r\n2022/11/15 09:55:49 - Merge Rows (diff).0 - \tat org.pentaho.di.trans.steps.mergerows.MergeRows.processRow(MergeRows.java:101)\r\n2022/11/15 09:55:49 - Merge Rows (diff).0 - \tat org.pentaho.di.trans.step.RunThread.run(RunThread.java:62)\r\n2022/11/15 09:55:49 - Merge Rows (diff).0 - \tat java.lang.Thread.run(Thread.java:750)\r\n2022/11/15 09:55:49 - Merge Rows (diff).0 - Caused by: org.pentaho.di.core.exception.KettleRowException: \r\n2022/11/15 09:55:49 - Merge Rows (diff).0 - The data type of field #4 is not the same as the first row received: you're mixing rows with different layout. Field [starttime Date] does not have the same data type as field [starttime String(10)].\r\n2022/11/15 09:55:49 - Merge Rows (diff).0 - \r\n2022/11/15 09:55:49 - Merge Rows (diff).0 - \tat org.pentaho.di.trans.step.BaseStep.safeModeChecking(BaseStep.java:2190)\r\n2022/11/15 09:55:49 - Merge Rows (diff).0 - \tat org.pentaho.di.trans.steps.mergerows.MergeRows.checkInputLayoutValid(MergeRows.java:265)\r\n2022/11/15 09:55:49 - Merge Rows (diff).0 - \tat org.pentaho.di.trans.steps.mergerows.MergeRows.processRow(MergeRows.java:99)\r\n2022/11/15 09:55:49 - Merge Rows (diff).0 - \t... 2 more\r\n2022/11/15 09:55:49 - Sort rows.3 - Finished processing (I=0, O=0, R=78, W=78, U=0, E=0)\r\n2022/11/15 09:55:49 - migration[Meter].[TariffTime] - ERROR (version 9.1.0.0-324, build 9.1.0.0-324 from 2020-09-07 05.09.05 by buildguy) : Errors detected!\r\n2022/11/15 09:55:49 - Merge Rows (diff).0 - Finished processing (I=0, O=0, R=2, W=0, U=0, E=1)\r\n2022/11/15 09:55:49 - migration[Meter].[TariffTime] - Transformation detected one or more steps with errors.\r\n2022/11/15 09:55:49 - migration[Meter].[TariffTime] - Transformation is killing the other steps!\r\n2022/11/15 09:55:49 - Sorted Merge 2.0 - Finished processing (I=0, O=0, R=210, W=202, U=0, E=0)\r\n2022/11/15 09:55:49 - Sorted Merge.0 - Finished processing (I=0, O=0, R=210, W=202, U=0, E=0)\r\n2022/11/15 09:55:49 - migration[Meter].[TariffTime] - ERROR (version 9.1.0.0-324, build 9.1.0.0-324 from 2020-09-07 05.09.05 by buildguy) : Errors detected!\r\n2022/11/15 09:55:49 - Migration - Finished job entry [Meter_TariffTime] (result=[false])\r\n```\r\n\r\nMeter.TariffTime schema in SQL Server:\r\n```\r\ncreate table Meter.TariffTime\r\n(\r\n ID int identity\r\n constraint PK_TariffTime\r\n primary key,\r\n TariffDayID int not null,\r\n TariffID int not null,\r\n StartTime time(1) not null,\r\n EndTime time(1) not null,\r\n TariffRateID int not null\r\n)\r\ngo\r\n```\r\n\r\ntables-before.sql:\r\n```\r\nCREATE TABLE \"meter\".\"tarifftime\"( \r\n\t\"id\" int NOT NULL,\r\n\t\"tariffdayid\" int NOT NULL,\r\n\t\"tariffid\" int NOT NULL,\r\n\t\"starttime\" time(1) NOT NULL,\r\n\t\"endtime\" time(1) NOT NULL,\r\n\t\"tariffrateid\" int NOT NULL);\r\n```\r\n\r\nPostgreSQL:\r\n```\r\ncreate table meter.tarifftime\r\n(\r\n id integer not null,\r\n tariffdayid integer not null,\r\n tariffid integer not null,\r\n starttime time(1) not null,\r\n endtime time(1) not null,\r\n tariffrateid integer not null\r\n);\r\n\r\nalter table meter.tarifftime\r\n owner to postgres;\r\n```","author":{"url":"https://github.com/jpmeijers","@type":"Person","name":"jpmeijers"},"datePublished":"2022-11-15T11:39:46.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/169/sqlserver2pgsql/issues/169"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8eae9d94-5677-c2ba-033f-8c74a212bdb2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C5AC:3BB9E8:E89FBB:1456ADC:6977A6D6 |
| html-safe-nonce | 151e1d53632c8985b33f2fde8210ca255d73c3d45aeb9e4042c3ac3247f60c8d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNUFDOjNCQjlFODpFODlGQkI6MTQ1NkFEQzo2OTc3QTZENiIsInZpc2l0b3JfaWQiOiI4NjAzMjIyMjUxOTIwNjY0Mjc4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | cd2dc67f1322f7d2e1f7256269b048e3de6ef5af9b60e57a9bbb97be26372da4 |
| hovercard-subject-tag | issue:1449641865 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/dalibo/sqlserver2pgsql/169/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a90acab54b33e191df496283fc02562e39a76246fad79a6cf8ecd25e80c90fa5/dalibo/sqlserver2pgsql/issues/169 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a90acab54b33e191df496283fc02562e39a76246fad79a6cf8ecd25e80c90fa5/dalibo/sqlserver2pgsql/issues/169 |
| og:image:alt | When running kitchen.sh -file=incremental.kjb I get an error on one of my tables. Running kettle with migration.kjb works without an error. Full error output: 2022/11/15 09:55:48 - Migration - Star... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jpmeijers |
| hostname | github.com |
| expected-hostname | github.com |
| None | e8b91803a5fc7ac066710509c57c636dab6ed4620bd9213b470a4617c79989c9 |
| turbo-cache-control | no-preview |
| go-import | github.com/dalibo/sqlserver2pgsql git https://github.com/dalibo/sqlserver2pgsql.git |
| octolytics-dimension-user_id | 182275 |
| octolytics-dimension-user_login | dalibo |
| octolytics-dimension-repository_id | 12059094 |
| octolytics-dimension-repository_nwo | dalibo/sqlserver2pgsql |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 12059094 |
| octolytics-dimension-repository_network_root_nwo | dalibo/sqlserver2pgsql |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9b4562e3c5c60b38349a7d80ec8e160c11fe84b6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width