Hi All,
We are creating tables in HANA using CDS syntax.
We have some confusion around using the data types in HANA CDS syntax.
As per the below link, CDS has limited data types and we are following these currently,
CDS Primitive Data Types - SAP HANA Developer Guide for SAP HANA Studio - SAP Library
But, we would like to create a column with data type SMALLINT and cannot see any relevant data type in the above link, But as per the below link where the HDB to CDS conversion is mentioned, we need to use hana.SMALLINT.
SAP HANA to CDS Data-Type Mapping - SAP HANA Developer Guide for SAP HANA Studio - SAP Library
But, When I create a column in HANA studio using the data type hana.SMALLINT, I get the SQL data type as SMALLINT and Column storage data type as INT.
Similarly, When When I create a column in HANA studio using the data type INTEGER, I get the SQL data type as INTEGER and Column storage data type as INT.
So, In both the above cases I am getting column storage data type as INT and SQL type differs.
Please let me know the correct data type for SMALLINT that I need to mention when I am creating a fresh/new table in CDS syntax. i.e either hana.SMALLINT or INTEGER ?
Regards
Vishwatej