Problem:
I have 2 tables (d1 & d2) containing Geo-spatial points. I want to carry out the following query:
select * from table 1 where table1.point is within 50km of any point in table2.point
I am using Spark-SQL
with GeoMesa
& Accumulo
to achieve the same. (Spark as processing engine, Accumulo as Data Store & GeoMesa for GeoSpatial libraries).
The above query is kind of left semi join
but I am not sure on how to achieve it using Spark-SQL
because as far as I have read subqueries can't be used in where clause.