Stratio / ingestion

Flume - Ingestion, an Apache Flume distribution
https://stratio.atlassian.net/wiki/display/PLATFORM/STRATIO+INGESTION
Apache License 2.0
147 stars 62 forks source link

Negative dates in milliseconds are not correctly transformed to dates in MongoSink #224

Closed jgduarte-stratio closed 7 years ago

jgduarte-stratio commented 7 years ago

There is a condition in the code that makes any negative value to be dealt as an ISO date. StringUtils.isNumeric(stringValue) of a negative number returns false.

epeinado commented 7 years ago

Hi jgduartestratio,

We have been investigating about this bug and it looks like Apache knows it is a bug but they can't correct it to keep backwards compatibility (you can read it here, is the same problem with an empty string). I have been speaking with mpenate and we have merged your PR.

Thanks for your collaboration!!