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

invalid datatype: "LOCATION" SPATIAL type in GROUP BY clause

$
0
0

Hi Experts,

 

I have created a below table in sap HANA with ST_POINT datatype & inseted recrds in it as below.

 

create COLUMN table MAP_LOCATION(SALES_ID NVARCHAR(5) primary key,SALES_REP NVARCHAR(50),SALES_CITY NVARCHAR(30),LOCATION ST_POINT(4326),SALES INTEGER);

 

INSERT INTO MAP_LOCATION values('S001','JAYESH','St. Louis', new ST_POINT(38.634107,-90.197729),2000);

INSERT INTO MAP_LOCATION values('S002','MICHAEL','Chicago', new ST_POINT(41.869632,-87.648928),1500);
INSERT INTO MAP_LOCATION values('S003','JIMMY','Minneapolis', new ST_POINT(44.964874,-93.273656),1200);
INSERT INTO MAP_LOCATION values('S004','HECTOR','Boise', new ST_POINT(43.596308,-116.213641),3500);

 

 

I used this single table (MAP_LOCATION) in Analytic View, It gets activated successfully but, when I click on 'Data Preview' I get below error.
Can you please help with this.

 

hana_spatial.JPG

 

Harshawardhan


Viewing all articles
Browse latest Browse all 6412

Trending Articles