How to tag each row with the current time or a fixed timestamp like in the documentation?

From the docs here (http://druid.io/docs/latest/tutorials/tutorial-batch.html) there is the passage:

If your data does not have a natural sense of time, you can tag each row with the current time. You can also tag all rows with a fixed timestamp, like “2000-01-01T00:00:00.000Z”.

However there is no mention of how to do this, and I cannot find any examples online. Any idea? Thanks

Josh

You are probably looking at this:
“timestampSpec” : {
“column” : “timestamp”,
“format” : “auto”,
“missingValue”: “2017-10-03 00:00:00"
},

Based on code, https://github.com/druid-io/druid/blob/master/api/src/main/java/io/druid/data/input/impl/TimestampSpec.java#L59, this should not be used in production :slight_smile:

Thanks,

-Suresh