Hello,
I am currently running a pipeline that reads data from Oracle Bulkload as the source and utilizes JDBC Producer for PostgreSQL as the destination.
Now, I am facing an issue where I need to rename a column from 'FIRST_NAME' to 'second_name' in the destination table, which is in PostgreSQL. I've attempted the following methods:
1. Using Oracle Bulkload with a Field Renamer stage followed by JDBC Producer.
- Error: JDBC_07 - Invalid column mapping from field '/Second_name' to column '/first_name'.
2. Using JDBC Consumer Table with a Field Renamer stage followed by JDBC Producer.
- Error: JDBC_07 - Invalid column mapping from field '/Second_name' to column '/first_name'.
3. Using JDBC Consumer Table with a Field Renamer stage followed by JDBC Producer.
- Error: com.streamsets.pipeline.api.base.OnRecordErrorException: JDBC_90 - Record doesn't have any columns for table 'table1'.
- Note: For option 3, I left the Field to Column Mapping empty in JDBC Producer.
………………………………………………………………………….
- Additionally, within the same pipeline, I attempted to incorporate the following Python SDK script to investigate the possibility of adding and altering values:
postgres_jdbc_table.field_to_column_mapping= n{'columnName' : 'SECOND_name', 'sdcField' : '/FIRST_NAME', 'dataType' : 'STRING'}]
- While this, script successfully updated all the columns within the pipeline, but the SDC field remained unaltered.
1: I'm seeking guidance on what might be causing these issues and how to properly handle the error message stating, "Record doesn't have any columns for the table in the destination."
2: Also If anyone has insights into how to update the SDC field as well, your guidance would be greatly appreciated.
Thank you for any assistance provided :)