How to get the latest time in Talend

Six Stars

How to get the latest time in Talend

Hi,

 

Please advise me for below question. Thank you so much!

 

The situation is I have different POs with multiple time and I am trying to only get the latest time for each PO. for now I have no idea to achieve what I want.

 

Sample data is below - 

Capture.JPG

 


Accepted Solutions
Community Manager

Re: How to get the latest time in Talend

Use a tAggregateRow and group by your PO. Then select the Max function for the Date output column.

View solution in original post


All Replies
Community Manager

Re: How to get the latest time in Talend

Use a tAggregateRow and group by your PO. Then select the Max function for the Date output column.

View solution in original post

Six Stars

Re: How to get the latest time in Talend

Thank you. I think it works!
I have another issue after I run. I select "list(object)" for the operations function for other columns but I got incompatible errors. I just want to get output but not use any function for other column. I did not find the general one in function so I choose "list" or "list(object)" but it did not work. Please advise me. Thank you again!
Community Manager

Re: How to get the latest time in Talend

This is because your output columns need to be set to List. Change the column types in your output schema of your tAggregateRow component

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