zhangfengcdt opened a new pull request, #83:
URL: https://github.com/apache/sedona-db/pull/83

   **Root Cause**
   
   The ST_KNN regression was introduced in commit df1e0b7 (September 12, 2025) 
which added geography type checking to prevent optimized spatial joins from 
being used with unsupported geography types.
   
   **The Problem**
   
   The new is_spatial_predicate_supported() function was checking ALL spatial 
predicates (including KNN) for geography types, but it was overly restrictive 
and blocked valid planar geometry KNN operations. When KNN predicates were 
blocked, the spatial join optimizer would skip optimization and fall back to 
NestedLoopJoinExec, which doesn't support ST_KNN function calls, resulting in 
the error:
   
   Implementation for st_knn([WkbView(Planar, None), WkbView(Planar, None), 
Arrow(Int64), Arrow(Boolean)]) was not registered
   
   


-- 
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]

Reply via email to