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

Crash when listing distinct destination_cidr_block's from aws_vpc_route #4360

Closed
e-gineer opened this issue Aug 23, 2024 · 3 comments
Closed
Labels
bug Something isn't working stale No recent activity has been detected on this issue/PR and it will be closed

Comments

@e-gineer
Copy link
Contributor

I can list all destination_cidr_block values:

> select destination_cidr_block from aws_vpc_route limit 5;
+------------------------+
| destination_cidr_block |
+------------------------+
| 0.0.0.0/0              |
| 10.0.0.0/24            |
| 0.0.0.0/0              |
| 172.31.0.0/16          |
| 0.0.0.0/0              |
+------------------------+

But, If I try to list distinct ones only, steampipe crashes:

> select distinct destination_cidr_block from aws_vpc_route;

Error: unexpected EOF

Here is the log. There is no plugin log file at all available.

2024-08-23 21:24:04.094 UTC [TRACE] steampipe [cda2]: DbClient.startQueryWithRetries end
2024-08-23 21:24:04.095 UTC [TRACE] steampipe [cda2]: DbClient.Close &{1 0 0 0x14000808a00 0x14000e00f60 <nil> <nil> <nil> <nil> <nil> 0 1 86400000000000 0 86400000000000 60000000000 0x140004fe2a0 {{{} 0} {0 0}} 0x140004fe300}
2024-08-23 21:24:04.095 UTC [WARN]  steampipe [cda2]: Error waiting for notification: read tcp 127.0.0.1:59101->127.0.0.1:9193: use of closed network connection
2024-08-23 21:24:04.096 UTC [TRACE] steampipe [cda2]: local client close complete
2024-08-23 21:24:04.096 UTC [TRACE] steampipe [cda2]: shutdown local service query
@e-gineer e-gineer added the bug Something isn't working label Aug 23, 2024
@e-gineer
Copy link
Contributor Author

Here is a workaround that returns properly:

with blocks as materialized (select destination_cidr_block from aws_vpc_route) select distinct * from blocks;

Copy link

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.

@github-actions github-actions bot added the stale No recent activity has been detected on this issue/PR and it will be closed label Oct 23, 2024
Copy link

This issue was closed because it has been stalled for 90 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale No recent activity has been detected on this issue/PR and it will be closed
Projects
None yet
Development

No branches or pull requests

1 participant