Quantcast
Channel: SCN: Message List - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 8968

Re: Script based calc view throws feature not supported error

$
0
0

Hi Ravi,

 

Thanks for the response, here's my script. In output parameters I have defined all 4

AVG_CYCLE_TIME,ITEM_NAME,CNT_CYCLE_TIME,SUM_CYCLE_TIME.Tried several other combinations...

 

  /********* Begin Procedure Script ************/

BEGIN

SQLA_VIEW = CE_OLAP_VIEW

("_SYS_BIC"."e2sc-hana/AV_ORDERS_PROM", ["CYCLE_TIME","ITEM_NAME"]);

SQLB_VIEW = CE_AGGREGATION

(:SQLA_VIEW,

[SUM("CYCLE_TIME") AS "SUM_CYCLE_TIME", COUNT("CYCLE_TIME") AS "CNT_CYCLE_TIME"], ["ITEM_NAME"]

);

var_out= CE_PROJECTION

(:SQLB_VIEW,

["SUM_CYCLE_TIME","CNT_CYCLE_TIME",

CE_CALC('"SUM_CYCLE_TIME" / "CNT_CYCLE_TIME"', INTEGER) AS "AVG_CYCLE_TIME","ITEM_NAME"]);

END

/********* End Procedure Script ************/

 

This throws the following error

  • Internal deployment of object failed;Repository: Encountered an error in repository runtime extension;Internal Error:Deploy Calculation View: SQL: transaction rolled back by an internal error: return type mismatch: Attribute name "AVG_CYCLE_TIME"  different from Attribute name: "SUM_CYCLE_TIME" : line 12 col 1 (at pos 516)nSet Schema DDL statement: set schema "E2SC_HANA"nType DDL: create type "_SYS_BIC"."e2sc-hana/CV_OCT3/proc/tabletype/VAR_OUT" as table ("AVG_CYCLE_TIME" INTEGER, "ITEM_NAME" VARCHAR(64), "SUM_CYCLE_TIME" DOUBLE, "CNT_CYCLE_TIME" SMALLINT)nProcedure DDL: create procedure "_SYS_BIC"."e2sc-hana/CV_OCT3/proc" ( OUT var_out "_SYS_BIC"."e2sc-hana/CV_OCT3/proc/tabletype/VAR_OUT" )

Viewing all articles
Browse latest Browse all 8968

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>