Skip to content

Commit 143f0a7

Browse files
DarthMaxFlorentinD
authored andcommitted
Exporter builders that do not support result store export raise error if result store is set
1 parent f50fb52 commit 143f0a7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core-write/src/main/java/org/neo4j/gds/core/write/NativeNodePropertiesExporterBuilder.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ public NativeNodePropertiesExporterBuilder(TransactionContext transactionContext
3030

3131
@Override
3232
public NativeNodePropertyExporter build() {
33+
if (resultStore.isPresent()) {
34+
throw new UnsupportedOperationException("Writing to the result store is only supported for licensed GDS");
35+
}
36+
3337
return new NativeNodePropertyExporter(
3438
transactionContext,
3539
nodeCount,

0 commit comments

Comments
 (0)