Skip to content
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

[d4rLFQqM] Align all export modes with quoting consistency #665

Merged
merged 2 commits into from
Oct 14, 2024

Conversation

gem-neo4j
Copy link
Contributor

When bulkImport was set to true, the quoting option the user input no longer worked. This PR makes the quoting work again and makes sure the defaults align with how it works for streaming and when bulkImport is false.

@@ -84,10 +84,11 @@ public Stream<ExportProgressInfo> all(
{
stream = false :: BOOLEAN,
batchSize = 20000 :: INTEGER,
bulkImport = true :: BOOLEAN,
bulkImport = false :: BOOLEAN,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note to reviewer, I didn't change the default, it was this signature that was wrong :)

Copy link
Collaborator

@hvub hvub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that looks fine.

Somethings noticed in passing here:

    private void preventBulkImport(ExportConfig config) {
        if (config.isBulkImport()) {
            throw new RuntimeException(
                    "You can use the `bulkImport` only with apoc.export.all and apoc.export.csv.graph");
        }
    }

shouldn't the exception message say apoc.export.csv.all instead?

@gem-neo4j gem-neo4j merged commit de3a412 into dev Oct 14, 2024
11 checks passed
@gem-neo4j gem-neo4j deleted the dev_make_export_csv_consistent branch October 14, 2024 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants