Is it possible to query spark sql by ids?
Ideally what I'm looking for is something like this
val ids = ["123", "345", "456", "972"]
df.filter(df("id") in ids)
Another idea scenario would be if I could even pass in a dataframe that has a single column.
val ids = df.map(r => r.getString(1))
dataDf.filter(dataDF("id" in ids)