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

[3QAbWQds] apoc.export.arrow.all ignores export file config #349

Merged
merged 2 commits into from
Apr 5, 2023

Conversation

vga91
Copy link
Collaborator

@vga91 vga91 commented Mar 14, 2023

Added check for procedures using file mode

// since it says "... use the `{stream:true}` config", but with arrow procedures the streaming mode is implemented via different procedures
if (!apocConfig().getBoolean(APOC_EXPORT_FILE_ENABLED)) {
throw new RuntimeException(EXPORT_TO_FILE_ARROW_ERROR);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we not have restrictions on where the file can be written to as well?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Indeed the procedure is not so tested about these cases.

I added an ExportArrowSecurityTest file
similar to ExportCoreSecurityTest, to test all these cases.

I preferred to create a separate file, instead of adding the procedures in ExportCoreSecurityTest,
because it works too differently (parameter order, {stream:true} not present, etc..)

@vga91 vga91 force-pushed the apoc.export.arrow.all-check-apoc-config branch from 3e3119e to 108576f Compare April 5, 2023 07:45
@vga91 vga91 force-pushed the apoc.export.arrow.all-check-apoc-config branch from 108576f to 3d34341 Compare April 5, 2023 07:53
Copy link
Contributor

@gem-neo4j gem-neo4j left a comment

Choose a reason for hiding this comment

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

LGTM :) Thanks!

@vga91 vga91 merged commit 89ad884 into dev Apr 5, 2023
11 checks passed
@vga91 vga91 deleted the apoc.export.arrow.all-check-apoc-config branch April 5, 2023 08:46
vga91 added a commit that referenced this pull request Apr 12, 2023
* [3QAbWQds] apoc.export.arrow.all ignores export file config

* [3QAbWQds] Added ExportArrowSecurityTest and removed some unnecessary tests
vga91 added a commit to neo4j-contrib/neo4j-apoc-procedures that referenced this pull request Jun 7, 2023
…oc#349)

* [3QAbWQds] apoc.export.arrow.all ignores export file config

* [3QAbWQds] Added ExportArrowSecurityTest and removed some unnecessary tests
vga91 added a commit to neo4j-contrib/neo4j-apoc-procedures that referenced this pull request Jun 7, 2023
…oc#349)

* [3QAbWQds] apoc.export.arrow.all ignores export file config

* [3QAbWQds] Added ExportArrowSecurityTest and removed some unnecessary tests
vga91 added a commit to neo4j-contrib/neo4j-apoc-procedures that referenced this pull request Jun 7, 2023
…oc#349) (#3616)

* [3QAbWQds] apoc.export.arrow.all ignores export file config

* [3QAbWQds] Added ExportArrowSecurityTest and removed some unnecessary tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants