Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error using Geolocation Function like ST_Distance_Sphere, Point, etc #38300

Open
Jayuda opened this issue Oct 5, 2022 · 2 comments
Open

Error using Geolocation Function like ST_Distance_Sphere, Point, etc #38300

Jayuda opened this issue Oct 5, 2022 · 2 comments
Labels
sig/execution SIG execution type/feature-request Categorizes issue or PR as related to a new feature.

Comments

@Jayuda
Copy link

Jayuda commented Oct 5, 2022

Bug Report

How to use geolocation function like on mysql - for example ST_Distance_Sphere or point.

1. Minimal reproduce step (Required)

SELECT ST_Distance_Sphere(
    point(106.829458, -6.144241),
    point(107.628336, -6.936575)
);

2. What did you expect to see? (Required)

Return distance from location A to B

3. What did you see instead (Required)

[42000][1305] FUNCTION devdb.st_distance_sphere does not exist
[42000][1305] FUNCTION devdb.point does not exist

4. What is your TiDB version? (Required)

Release Version: v6.1.1
Edition: Community
Git Commit Hash: 5263a0a
Git Branch: heads/refs/tags/v6.1.1
UTC Build Time: 2022-08-25 10:42:41
GoVersion: go1.18.5
Race Enabled: false
TiKV Min Version: v3.0.0-60965b006877ca7234adaced7890d7b029ed1306
Check Table Before Drop: false

@Jayuda Jayuda added the type/bug The issue is confirmed as a bug. label Oct 5, 2022
@mjonss
Copy link
Contributor

mjonss commented Oct 5, 2022

TiDB does yet not support Spatial datatypes, functions or indexes. See #6347 and https://docs.pingcap.com/tidb/stable/mysql-compatibility#unsupported-features

@dveeden
Copy link
Contributor

dveeden commented Oct 7, 2022

I would consider this a missing feature, not a bug.

@ChenPeng2013 ChenPeng2013 added the sig/execution SIG execution label Oct 8, 2022
@XuHuaiyu XuHuaiyu added type/feature-request Categorizes issue or PR as related to a new feature. and removed type/bug The issue is confirmed as a bug. labels Oct 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/execution SIG execution type/feature-request Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests

5 participants