Talend Open Studio (6.5.1) tMap 使用 <= / >= 条件连接

问题描述 投票:0回答:1

我的问题是在 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.

我的数据如下:

on top the 2 tables for join and the wished result 但这就是我得到的结果:

Actual result 这是我试图实现的加入:

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

我的天赋历程:

Talend process 我的 tMap 带有条件过滤器:

tMap expression filter

join talend
1个回答
0
投票
Joint Model

更改为Inner Joint以消除空值。

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.