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

How can I use GLOBAL IN in this module? #83

Open
wangchenghan opened this issue Feb 6, 2023 · 0 comments
Open

How can I use GLOBAL IN in this module? #83

wangchenghan opened this issue Feb 6, 2023 · 0 comments

Comments

@wangchenghan
Copy link

wangchenghan commented Feb 6, 2023

I was using sqlachemy to do a Double-distributed IN/JOIN subqueries, whose sql looks like
SELECT * FROM table_a WHERE field_a global in ( SELECT filed_a FROM table b )
The sql works well. But in order to keep the code clean, I need write it in ORM way, like
query(cls.field_a.in(table_b.subquery())
I can't find where to put the keyword global in. So I just got the exception
Double-distributed IN/JOIN subqueries is denied (distributed_product_mode = 'deny').
Is there any one knows how to solve this?

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