cancel
Showing results for 
Search instead for 
Did you mean: 

BAS HANA Database Project Incorrect Syntax Near Column Store Types

We have an XSA database with some hdb artifacts created and deployed using SAP Web IDE. Now we are migrating to HANA Cloud. I created a HANA Database Project from template in BAS and imported hdbtable files exported from the old database. When trying to deploy, BAS complains about incorrect SQL syntax near any statements using column store types.

Ex:

ROW TABLE "COUNTRIES"(
    "CODE" CHAR(2) CS_FIXEDSTRING NOT NULL,
    "NAME" VARCHAR(30) CS_STRING NOT NULL,
    "LATITUDE" DECIMAL(18, 10) CS_FIXED NOT NULL,
    "LONGITUDE" DECIMAL(18, 10) CS_FIXED NOT NULL,
    "REGION" VARCHAR(30) CS_STRING,
    PRIMARY KEY (
        "CODE"
    )
);

 Error: com.sap.hana.di.table: Syntax error: "incorrect syntax near" [8250009]
        at "src/Tables/COUNTRIES.hdbtable" (2:17)

The editor does not recognize any CS types as keywords.

Is it missing a dependency or module that needs to be installed manually?

Accepted Solutions (0)

Answers (1)

Answers (1)

CS data types are not supported in HANA Cloud

https://help.sap.com/viewer/3c53bc7b58934a9795b6dd8c7e28cf05/hanacloud/en-US/a55dd4eb896c4198828f179...

The solution for this is to remove all CS-type definitions.

Thanks

Ayala