will partition despite the preserve-partitioning flag

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
gowrishankar_h
Participant
Posts: 42
Joined: Wed Dec 26, 2012 1:13 pm

will partition despite the preserve-partitioning flag

Post by gowrishankar_h »

Hi Guys,

I have a senario to join 2 dataset using join stage.I put hash partition and sort on link to join stage since 2 dataset preserve with different partition.

its executing fine but iam getting follwoing warning.Can you please guide to takeaway this warning in log?.

When checking operator: Operator of type "APT_TSortOperator": will partition despite the preserve-partitioning flag on the data set on input port 0

Thanks
Gowri
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

The warning refers to the stage at the end of the link leading to the left side of the join. In the advanced tab of that stage you will need to put "clear" instead of the stage's default to get rid of this warning.
gowrishankar_h
Participant
Posts: 42
Joined: Wed Dec 26, 2012 1:13 pm

Post by gowrishankar_h »

I changed the the preserve partition into clear but still iam getting this warning..We will get this waring because we use link on sort instead of using explict sort stage before join?..
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Did you set Preserve Partitioning to Clear in the preceding stage in the job?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
gowrishankar_h
Participant
Posts: 42
Joined: Wed Dec 26, 2012 1:13 pm

Post by gowrishankar_h »

Yes Ray,

We are joining 2 dataset in join stage which was set as preserve partition.
We cant change in dataset since it is used in many other job with that partition.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Then, yes, the warning is because you are using a link sort. Use an explicit Sort stage to eliminate the warning (keeping the Preserve Partitioning = "Clear" setting in the stage upstream of that).

Or you could demote the warning with a message handler since you know it doesn't affect what you're seeking to accomplish.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
gowrishankar_h
Participant
Posts: 42
Joined: Wed Dec 26, 2012 1:13 pm

Post by gowrishankar_h »

Thanks..When i use explicit sort stage before join it works...But i want to know why its behaving warning when sorting with link?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Because the composer (conductor) inserts a tsort operator with all default settings (over which you have no control apart from memory allocation*) when you use a link sort. An explicit Sort stage gives you that control, via the stage Advanced properties.

* via APT_TSORT_STRESS_BLOCKSIZE environment variable
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply