Page 1 of 1

Issue with Aggregating the timestamp filed

Posted: Tue Feb 12, 2008 10:05 am
by cparru
I was trying to get the maximum value of a timestamp field in a file for later comparison. But while doing that the aggregator is trying to convert the max value to double datatype. How can i aggregate the timestamp value and map to the timestmp filed.

I need to get the maximum value of a TimeStamp filed in a file and pass it as is to the transformer.

here is the error i got -

Aggregator_83: Error when checking operator: When binding input interface field "COLUMN1" to field "COLUMN1": No default type conversion from type "timestamp" to type "dfloat".

Thanks in advance....

Posted: Tue Feb 12, 2008 10:11 am
by chulett
If you search the forums for your error - No default type conversion from type "timestamp" to type "dfloat" - you'll find you're not the first person to ask this question. :wink:

Posted: Tue Feb 12, 2008 11:36 am
by Teej
Plus:

Please read your DataStage documentations.

Not only will you find the answer in your documentations, you will also learn a lot more about how DataStage works.

It's there. Use it!

Posted: Tue Feb 12, 2008 11:32 pm
by sureshabbisetti
To Get the maximum timestamp, Use Sort stage and Remove duplicate stage.

Re: Issue with Aggregating the timestamp filed

Posted: Wed Feb 13, 2008 12:56 am
by priyadarshikunal
cparru wrote:I was trying to get the maximum value of a timestamp field in a file for later comparison. But while doing that the aggregator is trying to convert the max value to double datatype. How can i aggregate the timestamp value and map to the timestmp filed.

I need to get the maximum value of a TimeStamp filed in a file and pass it as is to the transformer.

here is the error i got -

Aggregator_83: Error when checking operator: When binding input interface field "COLUMN1" to field "COLUMN1": No default type conversion from type "timestamp" to type "dfloat".

Thanks in advance....

just check other properties of column used for aggregation

you will find preserve type

set this one to true

try to explore first

dont just post it

search button is also available :wink:

regards,