If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > SPL: Cannot unload to multiple devices when the given query cannot be executed in

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-28-06, 10:09
meiwen meiwen is offline
Registered User
 
Join Date: Oct 2005
Posts: 30
SPL: Cannot unload to multiple devices when the given query cannot be executed in

In hploader, i am trying to uload to multi device array.
And i tried to make a procedure last.sql used in sql query statement :
but seems the SPL can't work with multi device array.

Query -> select last(cpp_dt_modif) actorid from cust_ppaid_v2 for read only
Convert Reject -> localHPLLog/actor.Urej
Cannot unload to multiple devices when the given query cannot be executed in parallel.

here is the procedures :
drop procedure last;

-- get GMT integer , represent the millesecond from date 01/01/1970
-- when the flag is 1 , take the current datetime integer if the given datetime is null

CREATE PROCEDURE last(d DATETIME YEAR TO SECOND) RETURNING INT8;
DEFINE n INT8;

select (((d - DATETIME(2000-01-01 00:00:00) YEAR TO SECOND)::INTERVAL SECOND(9) TO SECOND || '')::integer + 946684800) *1000 actorid into n fr
om aa ;



RETURN n;

END PROCEDURE;


How to make the SPL works parrallel? is there any special setting?
i check on document, it was talking about use 'with parrallizable', but this option is only for C external UDRS.

Anybody can help me?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On