-
Notifications
You must be signed in to change notification settings - Fork 495
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
[wokdlhX3] Extract code from APOC core which is only used in APOC extended #3361
Conversation
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.
Thank you so much @Lojjs, just a couple of things that I want to discuss with you
.map(PathResult::new); | ||
} | ||
|
||
private static final class VirtualPathBuilder { |
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 would prefer to leave the API in VirtualPath
in core
@@ -87,7 +88,8 @@ private String[] getHeader(CSVReader csv, LoadCsvConfig config) throws IOExcepti | |||
Map<String, Mapping> mappings = config.getMappings(); | |||
for (int i = 0; i < headers.length; i++) { | |||
String header = headers[i]; | |||
if (ignore.contains(header) || mappings.getOrDefault(header, Mapping.EMPTY).ignore) { | |||
Mapping empty = new Mapping("", Collections.emptyMap(), LoadCsvConfig.DEFAULT_ARRAY_SEP, false); |
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.
Maybe adding it as a static final?
de07bcf
to
830df13
Compare
b595562
to
55fbd1c
Compare
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.
@Lojjs LGTM thank you so much!
Should go in together with neo4j/apoc#261