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] exists子查询的select字段不能使用distinct #43842

Open
3 tasks done
Yangjianhui302132 opened this issue Nov 13, 2024 · 0 comments
Open
3 tasks done

[Bug] exists子查询的select字段不能使用distinct #43842

Yangjianhui302132 opened this issue Nov 13, 2024 · 0 comments

Comments

@Yangjianhui302132
Copy link

Search before asking

  • I had searched in the issues and found no similar issues.

Version

2.0.5

What's Wrong?

image

What You Expected?

exists子查询中兼容distinct

How to Reproduce?

The sql such as:
select c.id from c
where
EXISTS (SELECT DISTINCT (psr.customer_id)
FROM tab1 psr
LEFT JOIN tab2 pt ON pt.id = psr.task_id AND pt.tenant_id = 1
WHERE psr.customer_id = c.id
AND psr.is_deleted = 0
)

Anything Else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant