how to pass the metadata(table definition) dynamically to a job

One Star

how to pass the metadata(table definition) dynamically to a job

Hi,
I need to create a generic job to get data from a file and load to table. However the number of fields may differ in the files but Can i pass the metadata dynamically to the job in all stages.
Thanks,
Vishu
Community Manager

Re: how to pass the metadata(table definition) dynamically to a job

I think you are looking for the dynamic schema feature, you are able to access the metadata information and update it during the runtime, see
http://www.talendforge.org/forum/viewtopic.php?id=27719
Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: how to pass the metadata(table definition) dynamically to a job

Thanks! Shong
Is it possible that i give the metadata file name to job as parameter and it uses the same metadata file from repository?
Thanks,
Vishal Gupta
Community Manager

Re: how to pass the metadata(table definition) dynamically to a job

Hi
Metadata file doesn't support context variable, you have to select the file path when defining the file metadata, however, you can use context variable to set the file path on file components with built-in property.
Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business