Skip to content

Commit c8d8b76

Browse files
authored
Merge pull request #10867 from DarthMax/allow_result_store_write_generated_graph
Allow writes to the result store even if the graph was generated
2 parents 56be30a + 1fb6e57 commit c8d8b76

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

applications/algorithms/machinery/src/main/java/org/neo4j/gds/applications/algorithms/machinery/Neo4jDatabaseNodePropertyWriter.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ private static void validatePropertiesCanBeWritten(
161161
throw new IllegalArgumentException("Missing arrow connection information");
162162
}
163163

164-
var expectedPropertyState = expectedPropertyStateForWriteMode(writeMode);
164+
var expectedPropertyState = expectedPropertyStateForWriteMode(writeMode, useResultStore);
165165

166166
var unexpectedProperties = nodeProperties
167167
.stream()
@@ -195,7 +195,11 @@ private static void validatePropertiesCanBeWritten(
195195
}
196196
}
197197

198-
private static Predicate<PropertyState> expectedPropertyStateForWriteMode(Capabilities.WriteMode writeMode) {
198+
private static Predicate<PropertyState> expectedPropertyStateForWriteMode(Capabilities.WriteMode writeMode, boolean useResultStore) {
199+
if (useResultStore) {
200+
return (__) -> true;
201+
}
202+
199203
return switch (writeMode) {
200204
case LOCAL ->
201205
// We need to allow persistent and transient as for example algorithms that support seeding will reuse a

0 commit comments

Comments
 (0)