Loading duplicate rows using teradata connector

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
nikhil_bhasin
Participant
Posts: 50
Joined: Tue Jan 19, 2010 4:14 am

Loading duplicate rows using teradata connector

Post by nikhil_bhasin »

Hi,

I am migrating a job from 8.1 version to 8.7. This job loads data into a teradata table which is having UPI on key columns and source data is expecetd to have duplicate rows, so in 8.1, multiload stage in sequential mode is used to counter this situation, However in 8.7 using connector I am not able to execute this job, as it gets aborted due to constraint violation. I have set the connector to sequential mode, even then it gets aborted.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Running in Sequential mode does not eliminate duplicates - it merely processes the duplicates in one node. Eliminating duplicates must be coded for, for example using a Remove Duplicates stage.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Sorry, don't have a good way to merge duplicate posts so here we go:
prasson_ibm wrote:If your table is defined with UPI then how come table can have duplicate records.
-craig

"You can never have too many knives" -- Logan Nine Fingers
rameshrr3
Premium Member
Premium Member
Posts: 609
Joined: Mon May 10, 2004 3:32 am
Location: BRENTWOOD, TN

Post by rameshrr3 »

Since you are using a Teradata Connector in 8.7 , Can you try setting the partitioning method to hash and sort by the keys with 'unique' option selected. I see that the Teradata connector doesn't allow you to specify a sequential execution method like the older stages.
nikhil_bhasin
Participant
Posts: 50
Joined: Tue Jan 19, 2010 4:14 am

Post by nikhil_bhasin »

@ Ray - I agree to your point of removing duplicates beforehand, but since it is running fine in 8.1/multiload, we are told not to do any changes execpt for that of connector :(.

@ prasson - Table doesn't have duplicates, they are trying to retain the last update as per requirement.

@ ramesh - we can change the execution mode to sequential in connector, you just have to click on the connector icon, once you open properties, instead of link (which opens by default)
Post Reply