"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
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: