-
Notifications
You must be signed in to change notification settings - Fork 18
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
Can not join from aws_vpc_security_group_rules to ipstack_ip #54
Comments
@dboeke |
@dboeke - I did a quick hack of the ipstack plugin to change the data type, but I believe that this might require an FDW change. I changed the ipstack to a cidr , but it still fails with the error. @kaidaguerre I believe this may require some FDW changes as well - I think this is related to the error we see when we cast the keycolumn in the qualifier. Notice that postgres converts the query to cast to
|
From what I read, you can cast cidr type to inet, so this should work without need for changing the data types: select
i.ip,
i.region_code,
i.country_code
from
aws_vpc_security_group_rule r,
ipstack_ip i
where
i.ip = r.cidr_ip::inet
and masklen(r.cidr_ip) >= 32; but it doesn't also this doesn't work: select
ip,
region_code,
country_code
from
ipstack_ip
where
ip in (
select
cidr_ip::inet
from
aws_vpc_security_group_rule
where
masklen(cidr_ip) >= 32
) |
we are failing to convert the quals to a form we can use
No quick solution suggests itself, this will take a little digging |
Describe the bug
Attempting to join
aws_vpc_security_group_rules.cidr_ip
toipstack_ip.ip
fails with a quals error:Error: 'List' call requires an '=' qual for column: ip
errorSteampipe version (
steampipe -v
)Example: v0.3.6
To reproduce
or
Expected behavior
Query should return a result e.g.:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: