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

Inconsistent behaviour with LIMIT in subquery #217

Open
binaek opened this issue Jul 12, 2022 · 1 comment
Open

Inconsistent behaviour with LIMIT in subquery #217

binaek opened this issue Jul 12, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@binaek
Copy link
Contributor

binaek commented Jul 12, 2022

select col from child_table where child_table.foreign_field in (select field from parent_table limit 2) limit 10 works fine

but select col from child_table where child_table.foreign_field in (select field from parent_table) limit 10 fails with 'List' call for table 'aws_s3_object' is missing 1 required qual: column:'bucket' operator: =

Note: child_table.foreign_field has {Name: "foreign_field", Require: plugin.Required} set in KeyColumns

@binaek binaek added the bug Something isn't working label Jul 12, 2022
@binaek
Copy link
Contributor Author

binaek commented Jul 12, 2022

select col from child_table left join child_table on child_table.field=child_table. foreign_field limit 10 also fails with 'List' call for table 'aws_s3_object' is missing 1 required qual: column:'bucket' operator: =

the above query works if I put a where parent_table.field='some_known_value'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants