Hash Partitioning Question

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
neroans
Premium Member
Premium Member
Posts: 2
Joined: Fri Jan 18, 2013 2:37 pm

Hash Partitioning Question

Post by neroans »

I have retrieved data from database in sequential execution mode, I sorted the data in sequential execution mode , I pushed the data through a Transformer in sequential execution mode. In the transformer I added a new column ( XYZ ) , In the next step I am trying to create a dataset using XYZ as the key for HASH Partitioning.

I have built all these steps in one job. The partitioning with XYZ is not working. But at the same step, if I use one of the columns that was retrieved from the database as the key for Hash partitioning. It is partitioning fine. Does it mean we should not be using intermediate values as key for partitioning?
qt_ky
Premium Member
Premium Member
Posts: 2895
Joined: Wed Aug 03, 2011 6:16 am
Location: USA

Post by qt_ky »

How exactly is it not working? What is the XYZ data type and the values you are using in XYZ?
Choose a job you love, and you will never have to work a day in your life. - Confucius
priyadarshikunal
Premium Member
Premium Member
Posts: 1735
Joined: Thu Mar 01, 2007 5:44 am
Location: Troy, MI

Post by priyadarshikunal »

This question is something like I need to go some where, on a cross road if I take one road i reach my destination and if not, i don't reach there. What is the problem? The problem is you did not read the sign board. Simple mistake but can cause trouble if you are short on gas, cash and time :wink:

Are you passing a constant value to that column?
Priyadarshi Kunal

Genius may have its limitations, but stupidity is not thus handicapped. :wink:
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

DataStage has no general problem with using a column created in a transform stage as the hash partitioning key downstream. Could you explain what the column type and contents are and what the partitioning did differently from what you expected?
Post Reply