Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- +-------+------------+-----------+
- |id |ssn |
- +-------+------------+
- |[5, 1, 2] |[200]|
- |[3] |[201]|
- |[4] |[202]|
- +-------+------------+
- +---------+
- |ssn2 |id |
- +---------+-
- |901|[1, 2]|
- |902|[5] |
- |903|[3, 4]|
- +---------+--
- +---+------------+-----------+
- |id |ssn |ssn2
- +-------+------------+
- |[5, 1, 2] |[200]|901,902
- |[3] |[201]|903
- |[4] |[202]|903
- +-------+------------+
- ds1.join(ds2,functions.split(functions.col(ds1.col("id"))).contains(
- functions.split(functions.col(ds2.col("id")))
- ))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement