Page 1 of 1

Column generator to generate timestamp

Posted: Mon Oct 05, 2009 6:16 am
by bakul
Hi,

I need to generate 2 columns of type timestamp and add them to input data stream.

The value of the timestamp fields should be current timestamp.

Does column generator provide a Generator type to create current timestamp? For dates, it does provide an option of 'use current date'. I see no similar option for timestamp.

Is there a way to achieve this?

Regards,
Bakul

Posted: Mon Oct 05, 2009 7:07 am
by ArndW
I'm too far away from the docs, just add a transform stage, create the column and fill it using the builtin values for the current timestamp (CurrentTimestamp and CurrentTimestampMS).

Posted: Wed Oct 07, 2009 11:28 pm
by bakul
Yes, that's what we have done.

Just wanted to check if it is possible in column generator thereby avoiding use of transformer.