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

bug: expected supported SQL sytax not support (UNION ALL, LIKE) #1943

Open
2 of 3 tasks
ZhengLin-Li opened this issue Jul 16, 2023 · 0 comments
Open
2 of 3 tasks

bug: expected supported SQL sytax not support (UNION ALL, LIKE) #1943

ZhengLin-Li opened this issue Jul 16, 2023 · 0 comments
Labels
A-bug Something isn't working

Comments

@ZhengLin-Li
Copy link

ZhengLin-Li commented Jul 16, 2023

Have you read the Contributing Guidelines on issues?

Please confirm if bug report does NOT exists already ?

  • I confirm there is no existing issue for this

Describe the problem

According to https://stonedb.io/docs/developer-guide/statements-for-queries, StoneDB support UNION ALL and LIKE.

But when execting the following command, StoneDB return "ERROR 6 (HY000): The query includes syntax that is not supported by the storage engine. Either restructure the query with supported syntax, or enable the MySQL core::Query Path in config file to execute the query with reduced performance."

image

The command:

SELECT *
FROM t0
WHERE ((t0.c0) LIKE (t0.c0))
UNION ALL
SELECT *
FROM t0
WHERE (NOT ((t0.c0) LIKE (t0.c0)))
UNION ALL
SELECT *
FROM t0
WHERE ((((t0.c0) LIKE (t0.c0))) IS NULL);

Expected behavior

Such query is supported

How To Reproduce

CREATE TABLE t0
(
    c0 INT
);

SELECT *
FROM t0
WHERE ((t0.c0) LIKE (t0.c0))
UNION ALL
SELECT *
FROM t0
WHERE (NOT ((t0.c0) LIKE (t0.c0)))
UNION ALL
SELECT *
FROM t0
WHERE ((((t0.c0) LIKE (t0.c0))) IS NULL);

Environment

Docker v1.0.4

Are you interested in submitting a PR to solve the problem?

  • Yes, I will!
@ZhengLin-Li ZhengLin-Li added the A-bug Something isn't working label Jul 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant