turbot / steampipe-plugin-csv

Use SQL to instantly query data from CSV files. Open source CLI. No DB required.
https://hub.steampipe.io/plugins/turbot/csv
Apache License 2.0
19 stars 4 forks source link

Empty CSV files causes plugin initialization failure #50

Closed cbruno10 closed 1 year ago

cbruno10 commented 1 year ago

Describe the bug If the plugin's paths matches one or more .csv file that contains no data, the plugin fails to initialize.

Steampipe version (steampipe -v) v0.17.4

Plugin version (steampipe plugin list) v0.5.0

To reproduce

Expected behavior Should the plugin skip over empty or malformed CSV files? This was previously discussed in https://github.com/turbot/steampipe-plugin-csv/issues/40 and https://github.com/turbot/steampipe-plugin-csv/issues/31, as these issues were more common previously when the header was expected to be valid all of the time.

Additional context Add any other context about the problem here.

github-actions[bot] commented 1 year ago

'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[bot] commented 1 year ago

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

cbruno10 commented 1 year ago

Will leave this issue closed for now, as we have no immediate plans to work on it. Empty CSVs are also fairly uncommon I think, but if anyone is encountering this issue frequently or has input, please add any comments here and we can re-open.