You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While trying to import some CSV files into CH that I found scattered around the internet I noticed we can't properly import those CSV files. I noticed these files contain empty lines at the end of the file.
While this works it is a bit cumbersome when we have no idea of how many empty lines a file can have at the end.
I would like to propose another setting like input_skip_trailing_empty_lines that could skip the trailing empty lines of the file. This could work for multiple formats, from CSV, TSV to JSONEachRow. We could simply ignore the lines.
Use case
While trying to import some CSV files into CH that I found scattered around the internet I noticed we can't properly import those CSV files. I noticed these files contain empty lines at the end of the file.
This can be reproduced by running this:
We can bypass this issue by changing the insert statement with:
While this works it is a bit cumbersome when we have no idea of how many empty lines a file can have at the end.
I would like to propose another setting like
input_skip_trailing_empty_lines
that could skip the trailing empty lines of the file. This could work for multiple formats, from CSV, TSV to JSONEachRow. We could simply ignore the lines.Import statement could then be:
The text was updated successfully, but these errors were encountered: