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

Parse Engine So weak #30360

Open
sxl-vay opened this issue Mar 1, 2024 · 7 comments
Open

Parse Engine So weak #30360

sxl-vay opened this issue Mar 1, 2024 · 7 comments

Comments

@sxl-vay
Copy link

sxl-vay commented Mar 1, 2024

select count(1) from ( select id,create_time from uf_shxl_alldata) aaa
Just like this simple SQL with a nested subquery seems to be challenging for Sharding's parsing engine to recognize logical tables. The parsing capability of Sharding's parsing engine appears to require further enhancement.

@sxl-vay
Copy link
Author

sxl-vay commented Mar 1, 2024

6dd924acc4365d461ba7b68a51b3edd

SELECT * FROM (SELECT * FROM t_order WHERE order_id = 1) o WHERE o.order_id = 1;

This SQL, as showcased in the official documentation, seems to be unparseable by the ShardingSphere parsing engine as well.

@zhuruixuan
Copy link
Collaborator

Please follow the template to ask questions

@sxl-vay
Copy link
Author

sxl-vay commented Mar 1, 2024

Please follow the template to ask questions
I can't find the template.I think I have tell you details of the questions

@strongduanmu
Copy link
Member

strongduanmu commented Mar 1, 2024

@sxl-vay You can click new issue, and then chose issue template.

image

@zhuruixuan
Copy link
Collaborator

@sxl-vay
截屏2024-03-01 18 38 08
截屏2024-03-01 18 38 20
After selecting the type of issue, you can click in and follow the template.
截屏2024-03-01 18 41 24
Please be sure to fill in the information according to the template so that we can help you faster

@sxl-vay
Copy link
Author

sxl-vay commented Mar 4, 2024

I'm sorry,

here are some infomation of my issue:
version: 4.0.0-RC1
I use shardingsphere-jdbc

in the following picture:
I used a sub-query sql,
This statement should perform full table routing
bug actual it made a error: can not find owner from table.

image

In addition,In my project there a lots of complex query sql(Just like the dql sql described in the picture above

),that Sharding standard parsing engine can not parse it.
and I used sharding-jdbc 4.0.0-RC1,and I cannot upgrade the version.
Can you provide a way or give some suggestions on how to enhance the standard SQL parsing engine

Copy link

github-actions bot commented Apr 3, 2024

There hasn't been any activity on this issue recently, and in order to prioritize active issues, it will be marked as stale.

@github-actions github-actions bot added the stale label Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants