Search code examples
aggregatetalend

Talend tAggregateRow put same grouping into different rows


A screenshot of my output in tLogRow:

a screenshot of my output in tlogrow

tmap settings:

tmap settings screenshot

taggregaterow settings:

taggreagterow settings screenshot

the workflow:

my ETL workflow

What I want to do is grouping by "fckd_operator" and "fdtgl_pinjam", but as you can see, "wiros" and "08-2015" aren't being grouped correctly

Any ideas?

EDIT 11/29 -> adding workflow,tmap, and taggregate row screenshot


Solution

  • I don't know if this only happens on my machine, but it is kinda stupid.

    In my tmap settings, you can see that I use pattern "yyyy-MM" to format fdtgl_pinjam, but it seems that pattern in tmap date only affects the outputted text and not the value, hence make the grouping seems wrong.

    My workaround is:

    1. remove the pattern in tmap settings
    2. using fdtgl_pinjam once more in tmap, but the value is Talend.getFirstDayOfMonth(fdtgl_pinjam), and group them using this field

    It works now! :D