Skip to content

Commit c5dba4e

Browse files
committed
Make sure that relationship type index is created when using PBI
- create an integration test for arrow database import
1 parent 3e5ddf6 commit c5dba4e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

io/core/src/main/java/org/neo4j/gds/core/io/db/GraphStoreToDatabaseExporterConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ default org.neo4j.internal.batchimport.Configuration toBatchImporterConfig() {
107107
exportConfig.writeConcurrency(),
108108
exportConfig.pageCacheMemory(),
109109
exportConfig.highIO(),
110-
IndexConfig.DEFAULT.withLabelIndex()
110+
IndexConfig.DEFAULT.withLabelIndex().withRelationshipTypeIndex()
111111
);
112112
}
113113
}

io/core/src/test/java/org/neo4j/gds/core/io/db/GraphStoreToDatabaseExporterConfigTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ void testToBatchImporterConfig() {
4343
assertThat(pbiConfig.pageCacheMemory()).isEqualTo(100_000L);
4444
assertThat(pbiConfig.highIO()).isTrue();
4545
assertThat(Neo4jProxy.writeConcurrency(pbiConfig)).isEqualTo(42);
46+
assertThat(pbiConfig.indexConfig().createLabelIndex()).isTrue();
47+
assertThat(pbiConfig.indexConfig().createRelationshipIndex()).isTrue();
4648
}
4749

4850
}

0 commit comments

Comments
 (0)