Split columns into multiple columns

Eight Stars

Split columns into multiple columns

Hi experts

I want to be able to split column into multiple columns.

I have values like this in row:

"2012-01-24T13:00:00-00:00": 19,
"2012-01-24T14:00:00-00:00": 13,
"2012-01-27T09:00:00-00:00": 23

Please note that there could be plenty of dates in one row which I’m unsure.

Is it possible to split this into date in one column and counts 19,13,23 into another column?

Fifteen Stars TRF
Fifteen Stars

Re: Split columns into multiple columns

Have a look at this post where I explain how to use String.split() in a tMap


Eight Stars

Re: Split columns into multiple columns

@TRF: thanks for your reply. I had looked at those posts earlier. However, my requirement is bit different to those. I need outlook like this:

Date Count
Date 1 19
Date 2 23
Date 3 3
And so on.

Cloud Free Trial

Try Talend Cloud free for 30 days.


Introduction to Talend Open Studio for Data Integration.

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Definitive Guide to Data Quality

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