How to Group By, then count and export the result as groupby

Highlighted
Seven Stars

How to Group By, then count and export the result as groupby

Hello everyone

I just want to implement a simple tasks of:

- Load data from CSV list

- Read each file

- Transform a data field

- Do group by and count 

So that I implement the workflow as below screenshot.

My error happen at tAgrregationRow with message : the operation 'count' for the output column can't be processed because of incompatible input and/or output types.

 

Please tell me what is wrong with them?

 

Full workflow

Capture.PNG

tMap details

Capture2.PNG

tAgrregationRow details

Capture3.PNG


Accepted Solutions
Community Manager

Re: How to Group By, then count and export the result as groupby

Hi
You don't configure the component settings correctly.
You are trying to count the number of records for each group, so you need to define one column with int type in the output schema of tAggregateRow. For example, define two columns:
CoreSet string type
counts int type // this column will be used for operation.

Regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business

View solution in original post


All Replies
Community Manager

Re: How to Group By, then count and export the result as groupby

Hi
You don't configure the component settings correctly.
You are trying to count the number of records for each group, so you need to define one column with int type in the output schema of tAggregateRow. For example, define two columns:
CoreSet string type
counts int type // this column will be used for operation.

Regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business

View solution in original post

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