Skip to content

Commit a3cb4f7

Browse files
committed
Support for type year
1 parent eb2dd49 commit a3cb4f7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tableschema_elasticsearch/mappers.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ def _convert_type(cls, schema_type, field, prefix):
6565
'integer': {'type': 'long',
6666
'ignore_malformed': True,
6767
'index': False},
68+
'year': {'type': 'long',
69+
'ignore_malformed': True,
70+
'index': False},
6871
'number': {'type': 'scaled_float',
6972
'scaling_factor': 100,
7073
'ignore_malformed': True,

0 commit comments

Comments
 (0)