Skip to content

Commit

Permalink
Block a vector field to have invalid characters for a physical file n…
Browse files Browse the repository at this point in the history
…ame.

Signed-off-by: Dooyong Kim <kdooyong@amazon.com>
  • Loading branch information
Dooyong Kim committed Aug 12, 2024
1 parent 2a77059 commit 41e0d92
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1183,7 +1183,7 @@ public void testBuild_whenInvalidCharsInFieldName_thenThrowException() {

// IllegalArgumentException should be thrown.
Exception e = assertThrows(IllegalArgumentException.class, () -> {
new KNNVectorFieldMapper.Builder(invalidVectorFieldName, null, CURRENT).build(builderContext);
new KNNVectorFieldMapper.Builder(invalidVectorFieldName, null, CURRENT, null).build(builderContext);
});
assertTrue(e.getMessage(), e.getMessage().contains("Vector field name must not include"));
}
Expand Down

0 comments on commit 41e0d92

Please sign in to comment.