Order of Columns in Select Query and metadata!!!

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
sarathchandrakt
Participant
Posts: 50
Joined: Fri Aug 29, 2014 1:32 pm
Location: Mumbai

Order of Columns in Select Query and metadata!!!

Post by sarathchandrakt »

Hi,

I am writing a select query in oracle connector.

Ex: Select A,B from tab1;

Do I need to write metadata in same order as that in the select statement?

A Varchar Etc...
B Varchar Etc...

As of now, I didn't face any problem different order. But I think I read it some where that it needs to be in same order. I am working on DS8.7
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

First thing that comes to mind is why are you writing the SQL? If you let the Connector automatically generate it by setting Generate SQL at runtime to Yes, you won't have to worry about things like that. Provide the SQL only if it is something that the stage is incapable of generating.

That being said, it is my understanding that the matching in a PX job is done by name. In a Server job it would be by order.
-craig

"You can never have too many knives" -- Logan Nine Fingers
oracledba
Premium Member
Premium Member
Posts: 49
Joined: Mon Aug 06, 2012 9:21 am

Post by oracledba »

Yes have the metadata in the same order.

As craig explained if you have set Generate SQL at runtime then you dont have to worry about it. 8)
Post Reply