Closed dboeke closed 1 year ago
Hey @dboeke , I just tried to reproduce this error but was unable to using csv v0.3.2
and Steampipe v0.17.0-alpha.9:
cbruno@M1P csv % cat ~/csv/a.csv
a,b,c,grant
1,2,3,g1
4,5,6,g2
7,8,9,g3
8,8,9,g4
9,8,9,g5
10,8,9,g6
11,8,9,g7
12,8,9,g8
cbruno@M1P csv % steampipe query "select * from a"
+----+---+---+-------+---------------------------+
| a | b | c | grant | _ctx |
+----+---+---+-------+---------------------------+
| 9 | 8 | 9 | g5 | {"connection_name":"csv"} |
| 12 | 8 | 9 | g8 | {"connection_name":"csv"} |
| 10 | 8 | 9 | g6 | {"connection_name":"csv"} |
| 11 | 8 | 9 | g7 | {"connection_name":"csv"} |
| 8 | 8 | 9 | g4 | {"connection_name":"csv"} |
| 1 | 2 | 3 | g1 | {"connection_name":"csv"} |
| 4 | 5 | 6 | g2 | {"connection_name":"csv"} |
| 7 | 8 | 9 | g3 | {"connection_name":"csv"} |
+----+---+---+-------+---------------------------+
cbruno@M1P csv % steampipe query "select * from a" --output csv
a,b,c,grant,_ctx
4,5,6,g2,"{""connection_name"":""csv""}"
12,8,9,g8,"{""connection_name"":""csv""}"
11,8,9,g7,"{""connection_name"":""csv""}"
1,2,3,g1,"{""connection_name"":""csv""}"
10,8,9,g6,"{""connection_name"":""csv""}"
7,8,9,g3,"{""connection_name"":""csv""}"
8,8,9,g4,"{""connection_name"":""csv""}"
9,8,9,g5,"{""connection_name"":""csv""}"
cbruno@M1P csv % steampipe query "select * from a" --output csv >> test.csv
cbruno@M1P csv % cat test.csv
a,b,c,grant,_ctx
8,8,9,g4,"{""connection_name"":""csv""}"
10,8,9,g6,"{""connection_name"":""csv""}"
9,8,9,g5,"{""connection_name"":""csv""}"
12,8,9,g8,"{""connection_name"":""csv""}"
7,8,9,g3,"{""connection_name"":""csv""}"
4,5,6,g2,"{""connection_name"":""csv""}"
1,2,3,g1,"{""connection_name"":""csv""}"
11,8,9,g7,"{""connection_name"":""csv""}"
mod_list
(assuming that's the CWD you're in)?csv.spc
file?'This issue is stale because it has been open 30 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.'
Describe the bug When using Steampipe to perform a query using the csv plugin and outputting the result of that query as csv into the current working directory results in an error
Steampipe version (
steampipe -v
) v0.16.0Plugin version (
steampipe plugin list
) csv: v0.3.0To reproduce
Expected behavior No error, or warning not to do it.
Additional context error persists until the csv is deleted from the directory.