Bug in pivot stage ???

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

chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

nagarjuna wrote:Thank you very much craig for testing .Hope you have given datatype as Bigint in both i/p,o/p of pivot and test data is also Big int ( value greater than int ).
Yes indeed. :wink:

It might help if you explained your troublesome job design in full - stages, processing, etc so we can perhaps do a more apples-to-apples comparison / test. You said earlier that if (basically) all you had was a pivot it "worked fine" so wondering what other stages are involved when it doesn't work fine.

And please confirm we're talking about the Pivot Enterprise stage here, yes?
-craig

"You can never have too many knives" -- Logan Nine Fingers
nagarjuna
Premium Member
Premium Member
Posts: 533
Joined: Fri Jun 27, 2008 9:11 pm
Location: Chicago

Post by nagarjuna »

Pivot enterprise stage ?? I am using a pivot stage ( whose documentation is in server guide ) ...So you mean to say that there is another pivot stage in parallel jobs ?? I dont know about it.Right now i am not at my work place so i dont have access :( ...Any ways my parallel job design is as follows :

Sequential file ------> Pivot ( server stage ) -----> Sequential File .

From Source to target , I have given a field ID ( as BigInt ) .Its failing for Bigint data with a warning arthimetic overflow .
Nag
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

There is indeed a Pivot Enterprise stage. It was introduced in version 8.1. It primarily offers a graphical tool for selecting the pivot key and pivoting columns and to include a "pivot index" column (auto-numbering of the rows for each pivot key value). The first of these means that you do not have to type in a comma-separated list of column names.

The other major differences are that the Pivot stage default execution mode is sequential while the Pivot Enterprise stage default execution mode is parallel, and in a future version the Pivot Enterprise will be able to support vertical pivots (rows to columns).

In the title bar the Pivot stage in parallel jobs shows as "PivotPX Stage" while the Pivot Enterprise stage shows as "PXPivot Stage". Their icons on the design area are identical.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

As a test, change BigInt to VarChar throughout, to see whether this really is the cause of the arithmetic overflow.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
nagarjuna
Premium Member
Premium Member
Posts: 533
Joined: Fri Jun 27, 2008 9:11 pm
Location: Chicago

Post by nagarjuna »

Thanks ray for your reply ....when i changed it as varchar job is running fine . Its not throwing any error .For , BigInt only its giving problem.

As i am working in 8.0.1 version , i am using server pivot stage in parallel jobs ...Thanks ray for your info about pivot enterprise stage in 8.1 version .
Nag
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Both stages are in the 8.1 version, and it's not the "server pivot stage" - that's completely different, so perhaps I should say all three stages. It is the original PX pivot stage rather than the exciting new Enterprise version introduced in 8.1. 8)

I'll see if I can try the other one tomorrow.
-craig

"You can never have too many knives" -- Logan Nine Fingers
nagarjuna
Premium Member
Premium Member
Posts: 533
Joined: Fri Jun 27, 2008 9:11 pm
Location: Chicago

Post by nagarjuna »

Thanks for your time craig ...If you get any chance request you to try with pivot ( which is present in server jobs ) ....

Anyways , I am running that particular job with varchar datatype .Just want to make sure with experts in dsxchange about BigInt datatype in pivot stage .
Nag
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

So... are you looking for someone to test this in a Server job? That's the only way one could use the pivot stage "which is present in server jobs". :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
nagarjuna
Premium Member
Premium Member
Posts: 533
Joined: Fri Jun 27, 2008 9:11 pm
Location: Chicago

Post by nagarjuna »

No craig ....I am using a parallel job .But , i took pivot stage from the folder server type .As far as i know , we have only one pivot stage in 8.0.1 .Tomorrow i will confirm the same and avoid further ambiguity .
Nag
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

nagarjuna wrote:No craig ....I am using a parallel job .But , i took pivot stage from the folder server type .As far as i know , we have only one pivot stage in 8.0.1 .
That could very well be your problem right there. Do double-check.
-craig

"You can never have too many knives" -- Logan Nine Fingers
nagarjuna
Premium Member
Premium Member
Posts: 533
Joined: Fri Jun 27, 2008 9:11 pm
Location: Chicago

Post by nagarjuna »

Hi Craig ,

Just now i have checked the job .when i looked at the stage tab ( double clicked the pivot stage ) Stagetype : PivotPX .
Nag
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Good. When I get a chance I'll try using that stage and see if anything comes of it. For whatever that is worth.
-craig

"You can never have too many knives" -- Logan Nine Fingers
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

8.1 on Linux, swapping in the 'PX' pivot in place of the Enterprise Pivot gets me a "Error: Arithmetic overflow" warning before the fatal errors start to be logged:

Error occurred in call to ORPHCallActivePluginRun() with input link '0'
The runLocally() of the operator failed.


All reported by the pivot stage. Also found this earlier warning interesting:

main_program: Invalid character(s) ([xA9]) found converting string (code point(s): IBM Confidential, OCO Source Materials, [xA9] Copyright IBM Corp. 2006. All Rights R...) from codepage UTF-8 to Unicode, substituting.

A problem with the copyright symbol it seems but not sure how that string gets pulled into the mixture. :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Note that it works fine as long as none of the values exceed the range of an Integer, once a single value goes beyond that into BigInt territory - overflow. This... 'limitation' does not exist in the Enterprise stage, btw.
-craig

"You can never have too many knives" -- Logan Nine Fingers
nagarjuna
Premium Member
Premium Member
Posts: 533
Joined: Fri Jun 27, 2008 9:11 pm
Location: Chicago

Post by nagarjuna »

Hi Craig ,
Thank you very much for confirming the error in pivot stage .
Nag
Post Reply