Reputation: 1759
I am new to Pentaho, my research end up with nothing
I have a table that has filed with type UUID
I need to copy it to another table where the field has the same UUID.
Table input. has this SQL
I am casting field to UUI filed specifically. however when I check input fields on the output table it shows as string, how do I cast it to uuid.
Also the same for the output table, it was created with datatype UUID for that field
output table shows datatype as the string
On the run, it throws an error clearly showing that it cannot convert it to UUID
2022/02/11 10:42:45 - Table output.0 - Caused by: org.postgresql.util.PSQLException: ERROR: column "qr_uuid" is of type uuid but expression is of type character varying
I am using Postgres 13 and Pentaho 9
Upvotes: 2
Views: 1246
Reputation: 1710
I have found an old thread dealing with the same problem, and there are some hints for the answer. You'll need to edit the database connection for postgres, and in the Options menu add Parameter stringtype with Value unspecified:
How insert UUID values in PostgreSQL table via Kettle?
Upvotes: 5