Issue with Aggregating the timestamp filed

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
cparru
Participant
Posts: 24
Joined: Wed Mar 07, 2007 11:22 am

Issue with Aggregating the timestamp filed

Post 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....
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post 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:
-craig

"You can never have too many knives" -- Logan Nine Fingers
Teej
Participant
Posts: 677
Joined: Fri Aug 08, 2003 9:26 am
Location: USA

Post 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!
sureshabbisetti
Participant
Posts: 21
Joined: Thu Oct 04, 2007 4:34 am
Location: India
Contact:

Post by sureshabbisetti »

To Get the maximum timestamp, Use Sort stage and Remove duplicate stage.
Thanks & Regards
Suresh Kumar Abbisetti
priyadarshikunal
Premium Member
Premium Member
Posts: 1735
Joined: Thu Mar 01, 2007 5:44 am
Location: Troy, MI

Re: Issue with Aggregating the timestamp filed

Post 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,
Priyadarshi Kunal

Genius may have its limitations, but stupidity is not thus handicapped. :wink:
Post Reply