How to use the run time partition name for the table in OC?

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
deepta
Participant
Posts: 1
Joined: Thu Nov 16, 2017 4:56 am

How to use the run time partition name for the table in OC?

Post by deepta »

Hello Everyone,

I have a partitioned table in oracle and I am using sparse lookup with this table. How to pass the partition name in run time?
Eg: Table name- City
Partitions like City_10,City_20,....
This Partition is created with the City_id, which is one of the column in the table CITY.
Input will have all City, so I need to pass the partition name in runtime.
While doing sparse lookup ,Is there anyway to do something like below to get the partition in runtime.
Select somecolumn from CITY partition('CITY_'||orchestrate.city_id) where City_id=orchestrate.city_id.
I'm not able to use orchestrate in table name/partition name in the query.Even if I form the partition string in a TFM and pass it in orchestrate, I am getting error.
Thanks
Deepta
Post Reply