We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df35c2d commit 583365dCopy full SHA for 583365d
driver/src/test/java/com/arangodb/ArangoDatabaseTest.java
@@ -188,9 +188,12 @@ void createCollectionWithSmartJoinAttribute(ArangoDatabase db) {
188
assumeTrue(isEnterprise());
189
assumeTrue(isCluster());
190
191
+ String fooName = "collection-" + rnd();
192
+ db.collection(fooName).create();
193
+
194
String name = "collection-" + rnd();
195
final CollectionEntity result = db.createCollection(name,
- new CollectionCreateOptions().smartJoinAttribute("test123").shardKeys("_key:"));
196
+ new CollectionCreateOptions().smartJoinAttribute("test123").distributeShardsLike(fooName).shardKeys("_key:"));
197
assertThat(result).isNotNull();
198
assertThat(result.getId()).isNotNull();
199
assertThat(db.collection(name).getProperties().getSmartJoinAttribute()).isEqualTo("test123");
0 commit comments