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.

INSERT INTO <strong>PAL</strong>_MISSING_VALUES_DATA_TBL VALUES (10, 15.5, 'C');<br />

INSERT INTO <strong>PAL</strong>_MISSING_VALUES_DATA_TBL VALUES (11, 16.5, 'C');<br />

INSERT INTO <strong>PAL</strong>_MISSING_VALUES_DATA_TBL VALUES (12, 16.5, 'C');<br />

INSERT INTO <strong>PAL</strong>_MISSING_VALUES_DATA_TBL VALUES (13, 15.5, 'C');<br />

INSERT INTO <strong>PAL</strong>_MISSING_VALUES_DATA_TBL VALUES (null, 15.6, 'D');<br />

INSERT INTO <strong>PAL</strong>_MISSING_VALUES_DATA_TBL VALUES (15, 15.5, null);<br />

INSERT INTO <strong>PAL</strong>_MISSING_VALUES_DATA_TBL VALUES (16, 16.5, 'D');<br />

INSERT INTO <strong>PAL</strong>_MISSING_VALUES_DATA_TBL VALUES (17, 16.5, 'D');<br />

INSERT INTO <strong>PAL</strong>_MISSING_VALUES_DATA_TBL VALUES (18, 15.5, 'D');<br />

INSERT INTO <strong>PAL</strong>_MISSING_VALUES_DATA_TBL VALUES (19, 15.7, 'A');<br />

DROP TABLE #<strong>PAL</strong>_CONTROL_TBL;<br />

CREATE LOCAL TEMPORARY COLUMN TABLE #<strong>PAL</strong>_CONTROL_TBL (<br />

"NAME" VARCHAR(100),<br />

"INTARGS" INTEGER,<br />

"DOUBLEARGS" DOUBLE,<br />

"STRINGARGS" VARCHAR (100)<br />

);<br />

INSERT INTO #<strong>PAL</strong>_CONTROL_TBL VALUES ('V0', 100, null, null);<br />

INSERT INTO #<strong>PAL</strong>_CONTROL_TBL VALUES ('V1', 201, null, null);<br />

INSERT INTO #<strong>PAL</strong>_CONTROL_TBL VALUES ('V2', 100, null, null);<br />

INSERT INTO #<strong>PAL</strong>_CONTROL_TBL VALUES ('THREAD_NUMBER', 2, null, null);<br />

DROP TABLE <strong>PAL</strong>_MISSING_VALUES_RESULT_TBL;<br />

CREATE COLUMN TABLE <strong>PAL</strong>_MISSING_VALUES_RESULT_TBL LIKE<br />

<strong>PAL</strong>_MISSING_VALUES_RESULT_T;<br />

DROP TABLE <strong>PAL</strong>_MISSING_VALUES_NULL_MAP_TBL;<br />

CREATE COLUMN TABLE <strong>PAL</strong>_MISSING_VALUES_NULL_MAP_TBL LIKE<br />

<strong>PAL</strong>_MISSING_VALUES_NULL_MAP_T;<br />

CALL "DM_<strong>PAL</strong>".AFL_<strong>PAL</strong>_MISSING_VALUES_PROC(<strong>PAL</strong>_MISSING_VALUES_DATA_TBL,<br />

#<strong>PAL</strong>_CONTROL_TBL, <strong>PAL</strong>_MISSING_VALUES_RESULT_TBL,<br />

<strong>PAL</strong>_MISSING_VALUES_NULL_MAP_TBL) with OVERVIEW;<br />

SELECT * FROM <strong>PAL</strong>_MISSING_VALUES_RESULT_TBL;<br />

SELECT * FROM <strong>PAL</strong>_MISSING_VALUES_NULL_MAP_TBL;<br />

Expected Result<br />

488 P U B L I C<br />

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

<strong>PAL</strong> Functions

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

Saved successfully!

Ooh no, something went wrong!