-
Notifications
You must be signed in to change notification settings - Fork 57
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
"select distinct arn ..." (and similar) should be "select distinct on (arn) arn ..." #493
Labels
bug
Something isn't working
help wanted
We are asking the community to submit a PR to resolve this issue
Comments
1 task
'This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.' |
'This issue was closed because it has been stalled for 90 days with no activity.' |
'This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Something isn't working
help wanted
We are asking the community to submit a PR to resolve this issue
Many queries in this mod use distinct to prevent duplicates. For example:
steampipe-mod-aws-compliance/query/vpc/vpc_flow_logs_enabled.sql
Lines 1 to 3 in 56d5f70
Distinct checks all elements in the tuple (row), as opposed to ensuring the specific
arn
orname
(common ones) is actually distinct.So, queries like this:
should actually be:
A an example to see the difference, please try these two queries:
The text was updated successfully, but these errors were encountered: