Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Testing expression

Hi,

I am trying to do a simple task with  Talend Open Studio for Data Integration.

Added a simple excel file (AAA_in) with a few columns (AAA, BBB, CCC), and I would like to know

in the column (CCC) value is empty or not. If it is empty/not empty, CCC_boolean - true/false.

I would like to see this information in XML out (AAA_out)

Added expression AAA_in.CCC.equals("") and I should see CCC_boolean is true or false.

When I testing expression, it works.

But actually, when I running a job and data in the column is empty, Talend stops on this line without any xml results.

Could you please help with this simple task.

Thank you!

 

Best Regards,

Erlandas

 

 

 

Labels (2)
5 Replies
Anonymous
Not applicable
Author

First, make sure the value is empty string or null value, or you can use this express whatever it is empty or null value, for example, on a tMap, set the expression on the CCC
(row1.CCC==null||row1.CCC.equals(""))?true:false

If you still have the issues, please provides more details.

Regards
Shong
Anonymous
Not applicable
Author

Hi,

Yes, thank you very much, it works!

 

One more question, please.

How can I check column rows?

If the column rows values are equal, mark these rows as true.

Something like this in CCC, we can see C335 and C335 equals

and I would like to add boolean true.

AAA BBB CCC DDD  
A111 B222 C333 D444 FALSE
A112 B223 C335 D445 TRUE
A113 B224 C335 D446 TRUE

 

Thank you very much for your help

 

Best Regards,

Erlandas

 

Anonymous
Not applicable
Author

I think you need to get the duplicated values using tUniqueRow component, and then do an left outer join between input data and duplicated values on a tMap.
Anonymous
Not applicable
Author

Hi,

Not sure where to connect tUniqueRow component.

0683p000009M8Iu.png

 

 

Could you please give me more details on how to do it.

Maybe you can give an example.

Many thanks

 

Erlandas

Anonymous
Not applicable
Author

Hi,

 

I found how this can be done.

Thank you for your help.

 

Regards,

Erlandas