Issue wit data extraction

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
sagar deshmukh
Participant
Posts: 103
Joined: Fri Jan 18, 2008 12:55 am
Location: chennai

Issue wit data extraction

Post by sagar deshmukh »

I Have query defined in Teradata enterprise stage as below:

select trim( Fsc_Yr_Num-1 || '0101') as TIMEID from dev_user_view.cldr
where cldr_dt = '#Current_Date#'


'#Current_Date#' is a parameter which I am passing through sequencer.

But the job aborts with below error :

Teradata_Enterprise_24,0: APT_TeraReadOperator:DB Call Failure(success check) Info = 0, Code = 3695, Message = A Single AMP Select statement has been issued in FastExport. 3,695
APT_TeraReadOperator:ExecuteImmediate failed for 'select trim( Fsc_Yr_Num-1 || '0101') as TIMEID from dev_user_view.cldr where cldr_dt = '2011-04-27' '. Error Code = 3695 3,695

If just run this query in SQL assistant it works fine:

select trim( Fsc_Yr_Num-1 || '0101') as TIMEID from dev_user_view.cldr where cldr_dt = '2011-04-27'

Please help me out with this.


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

Post by chulett »

"DB Call Failure(success check) Info = 0, Code = 3695, Message = A Single AMP Select statement has been issued in FastExport"

Why not address the error the job reported?
-craig

"You can never have too many knives" -- Logan Nine Fingers
throbinson
Charter Member
Charter Member
Posts: 299
Joined: Wed Nov 13, 2002 5:38 pm
Location: USA

Post by throbinson »

I believe this is a limitation of Teradata's FastExport. From the DS documentation on the teraread Operator.
v Single-AMP requests are not allowed. These are SELECTs satisfied by an equality term on the primary index or on a unique secondary index.
Meaning use the Teradata API instead. Disclaimer: This makes sense in pre 8 DataStage.
Post Reply