使用ETL元数据注入的枢轴

时间:2016-03-01 05:05:07

标签: pivot pivot-table pentaho kettle pdi

当我们有很少的记录可以在denorm步骤中手动编写时,使用行非规范化器来实现枢轴非常简单,但是当有数十万条记录时呢?我尝试使用etl元数据注入步骤,但我无法实现所需的输出。

Here is the link to my previous post where my source data has been defined.

这是我尝试过的 enter image description here

行denormaliser选项 enter image description here

pivot_inject_etl_metadata.ktr enter image description here

enter image description here

enter image description here

1 个答案:

答案 0 :(得分:1)

尝试这样的事情:

<强> pivot_inject_etl_metadata.ktr

Screenshot of etl_metadata

Group bysku_id

Add constants

Screenshot of Add constants

ETL Metadata Injection

Screenshot of ETL Metadata Injection