25.10.2016 Views

SAP HANA Predictive Analysis Library (PAL)

sap_hana_predictive_analysis_library_pal_en

sap_hana_predictive_analysis_library_pal_en

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

●<br />

: The name of the schema where the procedure is located.<br />

● : The procedure name specified when generating the procedure in Step 1.<br />

●<br />

●<br />

●<br />

: User-defined name(s) of the procedure’s input table(s). Detailed input table<br />

definitions for each procedure can be found in Chapter 3.<br />

: User-defined name of the procedure’s parameter table. The table structure is<br />

described in Parameter Table Structure [page 11]. Detailed parameter table definition for each<br />

procedure can be found in Chapter 3.<br />

: User-defined name(s) of the procedure’s output table(s). Detailed output table<br />

definition for each procedure can be found in Chapter 3.<br />

Note<br />

1. The input, parameter, and output tables must be created before calling the procedure.<br />

2. Some <strong>PAL</strong> algorithms have more than one input table or more than one output table.<br />

3. To call the <strong>PAL</strong> procedure generated in Step 1, you need the AFL__SYS_AFL_AFL<strong>PAL</strong>_EXECUTE or<br />

AFL__SYS_AFL_AFL<strong>PAL</strong>_EXECUTE_WITH_GRANT_OPTION role.<br />

Related Information<br />

<strong>SAP</strong> Note 2046767<br />

2.5.1 Parameter Table Structure<br />

<strong>PAL</strong> functions use parameter tables to transfer parameter values. Each <strong>PAL</strong> function has its own parameter<br />

table. To avoid a conflict of table names when several users call <strong>PAL</strong> functions at the same time, the parameter<br />

table must be created as a local temporary column table, so that each parameter table has its own unique<br />

scope per session.<br />

The table structure is as follows:<br />

Table 3:<br />

Column Name Data Type Description<br />

Name Varchar Parameter name<br />

intArgs Integer Integer parameter value<br />

doubleArgs Double Double parameter value<br />

stringArgs Varchar String parameter value<br />

Each row contains only one parameter value, either integer, double or string.<br />

The following table is an example of a parameter table with three parameters. The first parameter,<br />

THREAD_NUMBER, is an integer parameter. Thus, in the THREAD_NUMBER row, you should fill the parameter<br />

value in the intArgs column, and leave the doubleArgs and stringArgs columns blank.<br />

<strong>SAP</strong> <strong>HANA</strong> <strong>Predictive</strong> <strong>Analysis</strong> <strong>Library</strong> (<strong>PAL</strong>)<br />

Getting Started with <strong>PAL</strong> P U B L I C 11

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!