Hi,
On Hana AWS SP05 and looking at procedures.
Very straightforward example however when I execute the procedure (with logic as below with CE_PROJECTION with filter) I get the error "Internal error during instantiating calculation model". If I remove only the filter part from the projection function expression (so left with the projection field list only) the contents of lt_bp are output to item and the records are shown (obviously a filter is not performed and I get the entire table content). I cannot see the issue with the syntax of the filter, most grateful for any help.
"Could not execute 'call "_SYS_BIC"."exercises.group01.procedures/get_items_by_quantityunit_type_ce"( quantityunit => ...' in 54 ms 185 µs . SAP DBTech JDBC: [2048]: column store error: search table error: [34023] Internal error during instantiating calculation model ".
CREATE PROCEDURE get_items_by_quantityunit_type_ce ( in quantityunit NVARCHAR(3),
out item tt_item )
LANGUAGE SQLSCRIPT
SQL SECURITY INVOKER
READS SQL DATA AS
BEGIN
/*****************************
Write your procedure logic
*****************************/
lt_bp = CE_COLUMN_TABLE("EXERCISE01"."exercises.group01.data::item",
["OrderId", "OrderItem", "QuantityUnit" ]);
item = CE_PROJECTION(:lt_bp,["OrderId","OrderItem","QuantityUnit"], '"QuantityUnit" = :quantityunit');
END;