Using MySql Bulk Exec with column defaults

Five Stars

Using MySql Bulk Exec with column defaults

Hi
I plan to use the Bulk Exec task for MySql to load a data file into my staging tables for preprocessing. The stage table has a column which is company_connector_id that identifies the source of the data(this is an internal identifier). This column is obviously not available in the client data file coming in.
If i was to load this data file through the MySql command i would use the command

load data local infile 'filepath/filename' into table stg fields terminated by '|' lines terminated by '\r\n' 
(column1, column2, column3....)
set company_connector_id = 1234

The value of the company connector id would get set. 
How do i do this when i am using the tMySqlBulkExec task? I can pass it through a context but how can i set it through the task? 

Community Manager

Re: Using MySql Bulk Exec with column defaults

Read the client data file and rewrite the file to add this column before loading it. 
Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog