Skip to content

Comments

Skip empty lines when parsing CSV#7952

Closed
timroes wants to merge 1 commit intoelastic:masterfrom
timroes:fix/csvimport
Closed

Skip empty lines when parsing CSV#7952
timroes wants to merge 1 commit intoelastic:masterfrom
timroes:fix/csvimport

Conversation

@timroes
Copy link
Contributor

@timroes timroes commented Aug 7, 2016

The CSV importer currently doesn't ignore empty lines when parsing the CSV on the clientside.

Since a) the API does ignore empty lines as it seems from

and b) there are some spreadsheet tools that export with a \n at the end of the file (which currently causes the CSV importer to fail), this should be fixed I think.

So this pull request also skip empty lines in the CSV when importing files in the frontend, so these files can at all pass the first wizard step and make it to the backend.

@elasticmachine
Copy link
Contributor

Can one of the admins verify this patch?

@Bargs
Copy link
Contributor

Bargs commented Aug 8, 2016

@timroes you're the best, I've been meaning to fix this forever. @jbudz @Rasroh you both reported this issue (#7550 and #7825), could you verify Tim's solution?

@Bargs
Copy link
Contributor

Bargs commented Aug 8, 2016

jenkins, test this

@jbudz
Copy link
Contributor

jbudz commented Aug 8, 2016

LGTM, tests are blocked on #7959. Once that's in I'll give this another run.

@jbudz
Copy link
Contributor

jbudz commented Aug 8, 2016

Thanks @timroes!

@Bargs
Copy link
Contributor

Bargs commented Aug 9, 2016

LGTM as well once tests pass. @jbudz this probably just needs rebased on master now right?

@jbudz
Copy link
Contributor

jbudz commented Aug 9, 2016

Yep that should work.

@jbudz
Copy link
Contributor

jbudz commented Aug 17, 2016

jenkins, test this

@Bargs
Copy link
Contributor

Bargs commented Aug 17, 2016

@timroes I think this still needs to be rebased on master to get the tests passing

@jbudz
Copy link
Contributor

jbudz commented Aug 19, 2016

@timroes I'm going to close this and reopen with your commit rebased off master so we can get CI green. Will link back here.

@jbudz jbudz closed this Aug 19, 2016
jbudz added a commit that referenced this pull request Aug 19, 2016
Rebase #7952, skip empty lines when parsing CSV
@timroes timroes deleted the fix/csvimport branch November 4, 2016 20:55
airow pushed a commit to airow/kibana that referenced this pull request Feb 16, 2017
Rebase elastic#7952, skip empty lines when parsing CSV

Former-commit-id: bfaa3d4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants