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

support min(field)、max(field) on sharded table #80

Open
dk-lockdown opened this issue May 22, 2022 · 0 comments
Open

support min(field)、max(field) on sharded table #80

dk-lockdown opened this issue May 22, 2022 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed
Milestone

Comments

@dk-lockdown
Copy link
Collaborator

dk-lockdown commented May 22, 2022

Is your feature request related to a problem? Please describe.
if topology is like that:

db: drug_0, table: drug_resource_0, drug_resource_1, drug_resource_2, drug_resource_3, drug_resource_4
db: drug_1, table: drug_resource_5, drug_resource_6, drug_resource_7, drug_resource_8, drug_resource_9

drug_resource table contains columns: id, name, code, purchase_price, etc.

when query select min(purchase_price) from drug_resource where id > 15 and id <18, should rewrite the sql, such as select min(purchase_price) from drug_resource_5 where id > 15 and id < 18, query on every shard, then calculate each result.

max same as min

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@dk-lockdown dk-lockdown changed the title support min(field) on sharded table support min(field)、max(field) on sharded table May 22, 2022
@dk-lockdown dk-lockdown added enhancement New feature or request help wanted Extra attention is needed labels May 22, 2022
@dk-lockdown dk-lockdown added this to the v0.5.0 milestone Jul 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant