我的问题是在 Talend(Open Studio 6.5.1) 进程中连接 2 个表,但我无法实现连接条件。
我使用 tMap 组件来进行连接。我知道我可以对所有数据(笛卡尔积)进行查找,然后使用表达式过滤器,但这不是我想要的,因为表大小。我使用基于一个等于 (=) 条件和两个大于/小于等于 (>=, 我希望以下屏幕截图能够清楚地展示我对 Talend 作业的期望。<=) conditions on the lookup table (see code below). But if I run my job the result gives me data with Null rows (see screenshot too). I need to know how I can realize a join condition in Talend like in the code below.
我的数据如下:
from DWH_PROD.hp_test_tMapConditions t1
join DWH_PROD.hp_test_tMapConditions_lookup t2
on t1.ID = t2.ID
and t1.datum >= t2.von
and t1.datum <= t2.bis
我的天赋历程: