Join collection column with integer

Hi,

So I have this problem where I need to join a column of type collection (‘List’) with a column of integers (‘SAP nr.’). The rows should join if a list (‘List’) contains the integer (‘SAP nr.’)

image
image

What would be the best way to do it? I tried doing a cross join, and then filtering out the rows where the list does not contain the integer, but that creates a huge table and is very inefficient time-wise.

Hi @nojusas and welcome to the KNIME forum

There is a very similar question to yours whose solution could be of help:

In essence, you need to ungroup first, do the joining and eventually groupby again to obtain the expected result.

Hope this helps.
Best

Ael

5 Likes

Thanks, sounds less complex than crossjoining. :slightly_smiling_face:

2 Likes

My pleasure to help and thanks @nojusas for validating the solution.

Best

Ael

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.