Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

34080] R script syntax error;Error in :2:1: unexpected '/'

$
0
0

Hi,

 

I am trying to test out a simple R integration scenario with SAP HANA. Below is the SQL code tried:

 

DROP  TABLE COF_RESULT;

CREATE COLUMN TABLE COF_RESULT (ID INTEGER, COEFFI INTEGER);

 

 

 

DROP PROCEDURE GET_DUMMY;

CREATE PROCEDURE GET_DUMMY ( OUT coefficient COF_RESULT )

  LANGUAGE RLANG AS

 

 

BEGIN

/*****************************

  Write your procedure logic

*****************************/

valueX<-c(1,2,2,2,3)

valueY<-c(1,2,3,0,4)

result<-cor(valueX,valueY)

coeffi<-c(result)

coefficient<-cbind(1,COEFFI=coeffi)

 

END;

 

 

TRUNCATE TABLE COF_RESULT;

 

 

CALL GET_DUMMY(COF_RESULT) WITH OVERVIEW;

 

The system gives me back the below error messages and not sure how to solve. Any one knows the solution or encountered similar issue during R integration ?

 

SAP DBTech JDBC: [2048]: column store error: search table error:  [34080] R script syntax error;Error in  <text>:2:1: unexpected '/'

1:

2: /

 

 

Thanks,

Giri


Viewing all articles
Browse latest Browse all 6412

Trending Articles



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