Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Getting Started with Talend Open Studio for Data Integration

You're reading from  Getting Started with Talend Open Studio for Data Integration

Product type Book
Published in Nov 2012
Publisher Packt
ISBN-13 9781849514729
Pages 320 pages
Edition 1st Edition
Languages
Author (1):
Jonathan Bowen Jonathan Bowen
Profile icon Jonathan Bowen

Table of Contents (22) Chapters

Getting Started with Talend Open Studio for Data Integration
Credits
Foreword
Foreword
About the Author
Acknowledgement
About the Reviewers
www.PacktPub.com
Preface
Knowing Talend Open Studio Working with Talend Open Studio Transforming Files Working with Databases Filtering, Sorting, and Other Processing Techniques Managing Files Job Orchestration Managing Jobs Global Variables and Contexts Worked Examples Installing Sample Jobs and Data Resources Index

Aggregating data


An aggregation operation can often be thought of as summing some data items, but the Studio also uses aggregating functions to work out counts, minimum and maximum values, and average values, amongst other things. We will look at a simple data summation example.

The file we will work with is in the resources directory of this chapter and is named invoices.csv. It shows a number of invoices with the invoice number, customer name, and invoice amount. We want to extract the sum of the invoices for each customer.

  1. Create a new job and name it Aggregating.

  2. Create a File delimited metadata item for the invoices.csv file, following the steps we have used previously. Name column 0 as invoice_number, column 1 as customer_name, and column 2 as invoice_value. The Studio will choose a data type of float for the invoice value. It is better to use the data type BigDecimal, which preserves the two decimal places we expect with monetary values, so change this in the Type column of the final...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}