加载具有 SCD 类型 2 维度的事实 table

Loading fact table with SCD type 2 dimension

我有一个包含 100 万条记录的维度 tables,它是 SCD 类型 2.I 我正在使用 pentaho 维度查找步骤来填充此维度 table。我得到一个版本号、开始日期和结束日期。现在我想根据 scd type2 填充事实 table。最好的方法是什么?

使用 'Dimension lookup/update' 步骤根据自然键 ('Keys') 和时间戳 ('Stream Datefield' 查找代理 ID ('Technical key field') ).如果您只进行查找,请取消选中 'Update the dimension'。