Joined, right, and left joined



0

Question:

Could you explain what does the _2._2 means in the following syntex:

ordersLeftOuter.filter(rec => rec._2._2 == None).take(10).foreach(println)

I'm joining the orders and orders_items from the retail_db

Thanks,

Jamal


1 Answer(s)


0

While it would have been a lot better if you specified the full code definition for the variable rec, I would rightly guess that the type of the variable is such one of a nested tuple.

The first rec._2 returns another tuple that in turn has another ._2 item.

Is my explanation pretty clear?
You might want to post the full code that includes the definition of rec.

Your Answer

Click on this code-snippet-icon icon to add code snippet.

Upload Files (Maximum image file size - 1.5 MB, other file size - 10 MB, total size - not more than 50 MB)

Email
Password