cap-js / cds-dbs

Monorepo for SQL Database Services for CAP
https://cap.cloud.sap/docs/
Apache License 2.0
37 stars 11 forks source link

@cap-js/hana - unable to insert records into table with cds.hana.ST_GEOMETRY data type #769

Closed mathewzile closed 2 months ago

mathewzile commented 3 months ago

It seems that INSERT cannot handle HANA native data type (Geometry) properly, with error "Unsupported type: cds.hana.ST_GEOMETRY" image This is because cds.builtin.types refered to in this function does not have "cds.hana.ST_GEOMETRY", though InsertTypeMap in the same file has this geometry type listed.

To reproduce:

  1. Define an entity with hana.ST_GEOMETRY data type
  2. Define service and enable draft for the entity projection
  3. Open Fiori Preview and create a new record
  4. Observe error is returned image

Is this not supported at the moment?

mathewzile commented 2 months ago

this was resolved as of @sap/cds version 8.2.0, closing this issue. thanks!