Writing a component creation tutorial

One Star

Re: Writing a component creation tutorial

first of all, I would like to thank Saburo for the great tutorial on the Talend Component creation, I really like it and find it useful.
I have a question related to the part 9 of the tutorial - especially to the filtering of the output rows. I'm trying to implement this in TOS 5.6.1 and my job does not compile, because the row1 and row2 (in my code) are of the same type - row1Struct. The generated code contains these lines:
row1Struct row1 = new row1Struct();
row1Struct row2 = row1;
and later, when my custom component outputs this code:
if (nb_line_tTutorial8processing_1 % 2 == 0) {
  row2 = new row2Struct();
} else {
  row2 = null;
it won't compile because row2 is of type row1struct, not row2struct.
I would like to ask for an advice, why does my job behave like this. I've tried to experiment with component XML descriptor - HEADER attributes HAS_CONDITIONAL_OUTPUTS, DATA_AUTO_PROPAGATE and SCHEMA_AUTO_PROPAGATE, but with no success.
Any advice would be appreciated.
Thank you in advance and best regards,
One Star

Re: Writing a component creation tutorial

It is nice tutorial.
Yes sure please update more in future.
It will be good for all of us.
Very well done.
One Star

Re: Writing a component creation tutorial

what type of components are useful while doing incremental update in mySQL
Four Stars

Re: Writing a component creation tutorial

@hansut (Tomas): This might answer your question regarding part 9 (where does the instruction "row1Struct row2 = row1;" come from and how to get rid of it).


After setting HAS_CONDITIONAL_OUTPUTS, DATA_AUTO_PROPAGATE and SCHEMA_AUTO_PROPAGATE in the HEADER and moving the changes to the palette, you might need to remove the previous component from the subjob and then add it again. Sync the schema where required after reconnecting the components. That worked for me.


As Saburo explained at the beginning of part 9, Talend assigns row1 to row2 automatically when you activate the data auto propagation. But this assignment resided in the code even after updating the header. I am using version 6.4.1 and I am absolutely new to Talend. Thank Saburo, I could now learn how to add components. @Saburo: Thanks, please keep up the good work.


Join us at the Community Lounge.

Register Now


Talend named a Leader.

Get your copy


Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Why Companies Move to the Cloud: 7 Success Stories

Learn how and why companies are moving to the Cloud

Read Now

Agile Data lakes & Analytics

Accelerate your data lake projects with an agile approach


Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.