Skip to content

Commit 55e304a

Browse files
authored
Fixing a unit test failure (#1858)
MappingTest broke as a result of #1823. This commit fixes it.
1 parent 5160a05 commit 55e304a

File tree

2 files changed

+4
-1
lines changed
  • mr/src/test
    • java/org/elasticsearch/hadoop/serialization/dto/mapping
    • resources/org/elasticsearch/hadoop/serialization/dto/mapping/typeless

2 files changed

+4
-1
lines changed

mr/src/test/java/org/elasticsearch/hadoop/serialization/dto/mapping/MappingTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public void testPrimitivesParsing() throws Exception {
137137
MappingSet mappings = getMappingsForResource("primitives.json");
138138
Mapping mapping = ensureAndGet("index", "primitives", mappings);
139139
Field[] props = mapping.getFields();
140-
assertEquals(15, props.length);
140+
assertEquals(16, props.length);
141141
assertEquals("field01", props[0].name());
142142
assertEquals(BOOLEAN, props[0].type());
143143
assertEquals("field02", props[1].name());

mr/src/test/resources/org/elasticsearch/hadoop/serialization/dto/mapping/typeless/primitives.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@
4747
},
4848
"field15" : {
4949
"type" : "date_nanos"
50+
},
51+
"field16" : {
52+
"type" : "wildcard"
5053
}
5154
}
5255
}

0 commit comments

Comments
 (0)