yougov / mongo-connector

MongoDB data stream pipeline tools by YouGov (adopted from MongoDB)
Apache License 2.0
1.88k stars 479 forks source link

mongo-connector doesn't parse mongodb's date correctly #786

Open sagargit2 opened 6 years ago

sagargit2 commented 6 years ago

In my Elasticsearch schema mapping, date fields are indexed as:

{"type":"date","format":"dateOptionalTime"}

But, in the Elasticsearch, the date fields are indexed in incorrect format. This is causing problem when we read data from Elasticsearch and try to parse the date.

For eg: mongo-connector parses:

and pushes them to Elasticsearch. Basically, it seems to replace Z with 000.

I am using the development version: 2.5.2.dev0

I think this issue is similar to this

SebC99 commented 6 years ago

+1

ghost commented 5 years ago

+1