paleolimbot commented on PR #81:
URL: https://github.com/apache/sedona-db/pull/81#issuecomment-3290197715
> Let me know if you have any suggestions on how to fix the code!
I believe this is caused by a DataFusion bug (all extension information in a
VALUES clause are dropped). You should be able to work around this by moving
the function call to the SELECT (also shorter!).
```python
cities = sd.sql("""
SELECT city, ST_SetSRID(ST_GeomFromText(wkt), 3857) AS geometry FROM (VALUES
('New York', 'POINT(-8238310.24 4969803.34)'),
('Los Angeles', 'POINT(-13153204.78 4037636.04)'),
('Chicago', POINT(-9757148.04 5138517.44)'))
AS t(city, wkt)""")
```
--
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]