Hello All,
I am trying to do a simple analytics within HANA. But I was not able to execute the wrapper procedure. The HANA db is SP 11 and HANA studio at Version: 2.2.8. I have checked the installation of PAL in AFL and it looks fine. The function I am using is SINGLESMOOTH and also is available in the PAL functions.
The code is written in blue and error in red.
The steps I followed was:
SET SCHEMA _SYS_AFL;
-- CREATE A TYPE FOR INPUT TABLE
CREATE TYPE PAL_T_TS_DATA AS TABLE(CALENDAR_ID INT, SALES_AMOUNT DOUBLE);
--CREATE A STRUCTURE FOR THE PARAMETER TABLE
CREATE TYPE PAL_T_TS_PARAMS AS TABLE(NAME VARCHAR(60), INTARGS INTEGER, DOUBLEARGS DOUBLE,
STRINGARGS VARCHAR(100));
-- CREATE A TYPE FOR RESULT TABLE
CREATE TYPE PAL_T_TS_RESULTS AS TABLE(CALENDAR_ID INT, SALES_AMOUNT DOUBLE);
-- create a signature table
CREATE COLUMN TABLE PAL_TS_SIGNATURE( ID INTEGER, TYPENAME VARCHAR(100), DIRECTION VARCHAR(100));
-- insert values into the signature table
insert into PAL_TS_SIGNATURE values ( 1, 'PAL_T_TS_DATA', 'in');
insert into PAL_TS_SIGNATURE values ( 2, 'PAL_T_TS_PARAMS', 'in');
insert into PAL_TS_SIGNATURE values ( 3, 'PAL_T_TS_RESULTS', 'out');
I tried using the old wrapper procedure first.
call "SYSTEM"."AFL_WRAPPER_GENERATOR"('PAL_TS_S', 'AFLPAL','SINGLESMOOTH', _SYS_AFL.PAL_TS_SIGNATURE);
This gave the following error:
AFL error exception: AFL error: [423] "SYSTEM"."AFLPM_CREATOR": line 10 col 5 (at pos 193): [423] (range 3) AFL error exception: AFL error: registration finished with errors, see indexserver trace
I am tried analyzing the indextrace but couldn't find anything useful. Then I tried using the new wrapper:
call "SYS"."AFLLANG_WRAPPER_PROCEDURE_CREATE"
( 'AFLPAL',
'SINGLESMOOTH',
'INF719750',
'PAL_TS_S',
_SYS_AFL.PAL_TS_SIGNATURE);
It gave the following error:
invalid column name: [260] invalid column name: POSITION: line 1 col 9 (at pos 8) (please check lines: )
Am I missing something?