yutannihilation opened a new pull request, #428:
URL: https://github.com/apache/sedona-db/pull/428
Related to #180.
It seems it's a bit hard to tackle the issue directly, so this pull request
adds a simple validation script to check if the document reflects the
implementation correctly. This checks, (1) if the functions listed in the
reference matches with the actual implementation, and (2) if the functions are
sorted in alphabetical order.
I need to check if each one is actual problem or just a false-positive, but
this is the current result:
```console
❯ uv run ./docs/scripts/validate_sql.py
Functions only in implementation:
- st_aswkb
- st_aswkt
- st_distance
- st_distancesphere
- st_distancespheroid
- st_frechetdistance
- st_geogfromtext
- st_geometryfromtext
- st_geomfromtext
- st_hausdorffdistance
- st_line_interpolate_point
- st_line_locate_point
- st_numinteriorrings
Functions only in document:
- st_closestpoint
- st_linelocatepoint
Traceback (most recent call last):
File "/path/to/sedona-db/./docs/scripts/validate_sql.py", line 51, in
<module>
raise RuntimeError(
RuntimeError: There are some mismatch between the SQL reference and the
actual implementation!
```
--
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]