steampipe-postgres-fdw icon indicating copy to clipboard operation
steampipe-postgres-fdw copied to clipboard

Sorting `aws_vpc` by `cidr_block` fails with `error: "driver: bad connection"`

Open svend opened this issue 3 years ago • 3 comments

Describe the bug

Sorting the VPS from aws_vpc by cidr_block fails with the following error:

$ ~/src/steampipe/steampipe-v0.10.0 query 'select cidr_block from aws_vpc order by cidr_block'
Warning: executeQueries: query 1 of 1 failed: driver: bad connection

Steampipe version (steampipe -v)

$ ~/src/steampipe/steampipe-v0.10.0 --version                                                          
steampipe version 0.10.0

To reproduce

Run the following command:

steampipe query 'select cidr_block from aws_vpc order by cidr_block' 

Expected behavior

Output a table of VPC CIDRs, sorted by CIDR.

Additional context

The same command on steampipe v0.9.1 hangs instead of returning an error.

Casting to network works:

 ~/src/steampipe/steampipe-v0.10.0 query 'select cidr_block from aws_vpc order by network(cidr_block)'

svend avatar Dec 02 '21 23:12 svend

Thanks @svend for using Steampipe and letting us know about this problem.

Great that you could share a workaround as well! 👍

e-gineer avatar Dec 03 '21 06:12 e-gineer

@kaidaguerre Error: unexpected EOF Related issue: https://github.com/turbot/steampipe-plugin-aws/issues/1613

pskrbasu avatar Jun 09 '23 12:06 pskrbasu