From Thursday, July, 9, 3:00 PM Pacific,
our Community site will be in
read-only mode
through Sunday, July 12th.
Thank you for your patience.

how to do an inner join in tmysqloutput on map

Highlighted
Four Stars

how to do an inner join in tmysqloutput on map

I have this job design.

map1map1

I'ld like to do this join

insideMap.png

 

I tried to do that but I can't. I tried to drag "id" to "users_id", I tried to do some expression in "users_id" but I didn't have any success..

What I supose to do?

 


Accepted Solutions
Highlighted
Four Stars

Re: how to do an inner join in tmysqloutput on map

Well, I did it.

 

I had to make another job. In the first job I make a tFileOutputDelimited for get the email and the key (that key I used to link to glpi_users)

job1.JPG

 

So in the job2 I used this file join with user table to do that I needed.

job2.JPG

 

It's works!

Thank's for everybody's help

View solution in original post


All Replies
Highlighted
Ten Stars

Re: how to do an inner join in tmysqloutput on map

What you're asking for doesn't make sense. Joins are for relating data from multiple sources for the purpose of creating a single output. With a single input, you don't need to do a join since all values are present in your input.

Rather, what is your desired output given the input described in your screenshot?
Highlighted
Sixteen Stars
Sixteen Stars

Re: how to do an inner join in tmysqloutput on map

You can make join only for input flow (left side), not for output flow.

TRF
Highlighted
Four Stars

Re: how to do an inner join in tmysqloutput on map

Ok. I'll explain better...

 

 

In database model, row4 (glpi_usersmail) is a table created because a user can have more than one email.. so a multivalued attribute..

in glpi_users don't have the email attribute. I need to associate the id from "user" in "usersmails"

Why? Because when I run the job, in glpi_usersmails don't have any reference in "user"

I'm new usind the Talend Studio by the way

Highlighted
Four Stars

Re: how to do an inner join in tmysqloutput on map

But I need to get the "email" field on LDAP and the "id" in the same job.

 

Some sugestion?

Highlighted
Four Stars

Re: how to do an inner join in tmysqloutput on map

I believe you can get the "email" field on LDAP and the "id" in the same job by concatenating 2 fields  in TJavarow 

Ten Stars

Re: how to do an inner join in tmysqloutput on map

Do you need to look up the id for each email?
Highlighted
Four Stars

Re: how to do an inner join in tmysqloutput on map

Well, I did it.

 

I had to make another job. In the first job I make a tFileOutputDelimited for get the email and the key (that key I used to link to glpi_users)

job1.JPG

 

So in the job2 I used this file join with user table to do that I needed.

job2.JPG

 

It's works!

Thank's for everybody's help

View solution in original post

2019 GARTNER 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

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

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