How to Split a string and comparative with others in a dataframe

Viewed 21

i am studying scala and apache spark right now, so i am not a expert in this languaje, I have a question with a Dataframe and a problem that i have:

This is the first Dataframe

And this is the second

what i want my code to do is return a true when i compare "141144774777" with "14_1447", similar with "142144788898" and "1421447"; and return a false when compare with the others.

Similar with "32_0141", "11_4887", "99_447"

and it could be dinamyc? I mean, add a row with other data in parameterId and the code add this to the analysis.

0 Answers
Related