I have a table like below and I want to get row where distance in min in spark sql
I tried this
result.select($"sourceBorder", $"targetB