cgauvi opened a new issue, #1954:
URL: https://github.com/apache/sedona/issues/1954

   
   
   I'm following the [latest SedonaSnow 
tutorial](https://sedona.apache.org/latest/tutorial/snowflake/sql/?h=snowflake),
 and I think the following will fail as `ST_Distance` will resolve to 
Snowflake's native `ST_Distance` function
   
   ```sql
   SELECT geom, ST_Distance(Sedona.ST_Point(1.0, 1.0), geom) AS distance
   FROM city_tbl_geom
   ORDER BY distance DESC
   LIMIT 5
   ```
   
   I get (as expected) `Invalid argument types for function 'ST_DISTANCE': 
(BINARY(67108864), BINARY(8388608))`
   Changing this to 
   
   ```sql
   SELECT geom, Sedona.ST_Distance(Sedona.ST_Point(1.0, 1.0), geom) AS distance
   FROM city_tbl_geom
   ORDER BY distance DESC
   LIMIT 5
   ```
   gives the presumably expected result
   
   
![Image](https://github.com/user-attachments/assets/aa90f58a-5eca-4d0a-b961-dbda6ca14692)
   


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