MyqueWooMiddo commented on issue #1766: URL: https://github.com/apache/sedona/issues/1766#issuecomment-2614169167
> This query is not yet supported. The reason is that the ST_KNN cannot be used as a predicate because predicates in SQL are used to filter rows based on conditions that evaluate to true or false, while ST_KNN is a ranking function. That being said, a knn join cannot be used as a predicate with a regular join condition. > > However, we do support KNN join with equality and inequality operators that are pushed to the source datasource loader, for example: > > ``` > select * from tbl_a > join tbl_b on st_knn(point,point,1) and tbl_a.groupid = 1 > ``` > > is supported with the groupid = 1 pushed to the reader. But I think a KNN-query usually contains dimension columns, such as group / type / classication So, is it difficult to implement " st_knn(point_query,point_object, K , dim_col_query , dim_col_object) " -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
