Hi,
I am preparing a bootcamp for partners and just want to execute a select statement using a simple Geospatial function (ST_POINT) with data coming from a table. Format of the data in the table in the screenshot below, it is the table "sap.hana.democontent.epm.data::EPM.MD.Addresses"
coming from the SAP HANA Demo project "SHINE" content.
Select statement:
NEW ST_POINT('POINT(LONGITUDE LATITUDE)', 4326) as LOC from"TRAINING90"."MDAddresses"
leads to the error message:
Could not execute 'select NEW ST_POINT('POINT(LONGITUDE LATITUDE)', 4326) as LOC from "TRAINING90"."MDAddresses"' in 2 ms 817 µs .
SAP DBTech JDBC: [266]: inconsistent datatype: Well-known Text deserialization failed. Reason: Invalid Number: Unexpected value.!Position: 15. Of input: POINT(LONGITUDE LATITUDE) at function st_point()
But this command works:
NEW ST_POINT('POINT(2.111 42.222)', 4326) as LOC from"TRAINING90"."MDAddresses"
Is it not possible to use data fields coming from a table withing a ST_POINT function? In the standard SHINE content the data type is "Double" - is this correct?
Thanks
Wolfgang