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] Can't query 2 AWS provider resources with INNER JOIN #404

Open
jonochang opened this issue Apr 25, 2024 · 1 comment
Open

[BUG] Can't query 2 AWS provider resources with INNER JOIN #404

jonochang opened this issue Apr 25, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@jonochang
Copy link

Describe the bug
When making a query using INNER JOIN:

❯ stackql exec "SELECT alarms.region, alarm.alarm_name FROM awscc.cloudwatch.alarms AS alarms INNER JOIN awscc.cloudwatch.alarm AS alarm ON (alarms.alarm_name = alarm.alarm_name) WHERE alarms.region = 'ap-southeast-2'";

we get the following error:

alias 'alarms' does not map to any table expression

When amending the query like so:

❯ stackql exec "SELECT region, alarm_name FROM awscc.cloudwatch.alarms AS alarms INNER JOIN awscc.cloudwatch.alarm AS alarm ON (alarms.alarm_name = alarm.alarm_name) WHERE region = 'ap-southeast-2'";

we also get a different error:

unknown key ResourceDescription

To Reproduce
Steps to reproduce the behavior:

  • run the queries above

Expected behavior

  • Able to join 2 separate provider resources

Screenshots
N/A

Desktop (please complete the following information):
OS: MacOSX
CLI

Smartphone (please complete the following information):
N/A

Additional context
N/A

@jonochang jonochang added the bug Something isn't working label Apr 25, 2024
@jonochang jonochang changed the title [BUG] [BUG] Can't join 2 AWS provider resources Apr 25, 2024
@jonochang jonochang changed the title [BUG] Can't join 2 AWS provider resources [BUG] Can't query 2 AWS provider resources with INNER JOIN Apr 25, 2024
@general-kroll-4-life
Copy link
Contributor

Cheers @jonochang good catch. Shall get to work on this and update when possible.

Thanks Again

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