-
Notifications
You must be signed in to change notification settings - Fork 493
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #2932: The apoc.import.csv skipLines config doesn't work correctly #2984
Conversation
…t work correctly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you have mixed up two comments, otherwise it looks great
// skip header and another one | ||
testSkipLine(1L, 2); | ||
|
||
// skip only-header (default config) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume these two comments should switch place?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vga91 Thanks for fixing, looks good now!
…tly (#2984) (#3012) Co-authored-by: Giuseppe Villani <[email protected]>
…tly (#2984) (#3011) Co-authored-by: Giuseppe Villani <[email protected]>
…t work correctly (neo4j-contrib#2984) (neo4j-contrib#3012) Co-authored-by: Giuseppe Villani <[email protected]>
Fixes #2932
Leverage on
CsvReader
to skipLines,because
CountingReader.skip(n)
callsjava.io.FilterReader.skip(n)
, which skip characters instead of lines.removing the
CountingReader.skip
is not a breaking-change because by default isskip(0)
, so theCountingReader
skip nothing actually.changed deprecated API
CSVReader
toCSVReaderBuilder