Split columns into multiple columns

Nine 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?

Thanks
Harshal.

Sixteen Stars TRF
Sixteen Stars

Re: Split columns into multiple columns

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

https://community.talend.com/t5/Design-and-Development/String-Handling-in-Tmap/td-p/141264


TRF
Nine 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.

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

An API-First Approach to Modernizing Applications

Learn how to use an API-First Approach to Modernize your Applications

Watch Now