cancel
Showing results for 
Search instead for 
Did you mean: 

Error while creating table

Former Member
0 Kudos

Hi all ,

Following code written to define table .....

table.schemaName = "MYSCHEMA";
table.tableType = COLUMSTORE;
table.description = "table Description";
table.columns= [
{name ="Col1"sqlType =NVARCHAR;nullable = false;length =15 comment = "OrderId";},
{name ="Col2"sqlType =NVARCHAR;nullable = false;length =20 comment = "Order Item";},
{name ="Col3"sqlType =DECIMAL;nullable = false;precision =15;scale =3; comment = "Quantity";},
{name ="Col4"sqlType =NVARCHAR;nullable = false;length = 3; comment = "Quantity unit";}];
table.primarykey.pkcolummns=["Col1","Col2"];

Giving me following error

ERROR workshop/sessiona/00/data/MYTABLE.hdbtable
Repository: CheckObjects failed for at least one object; Parse error for table definition: Syntax error in line 0 and column 0 : unknown name

Please let me know where is bug in my code .

hari

Accepted Solutions (1)

Accepted Solutions (1)

vivekbhoj
Active Contributor
0 Kudos

Hi Hari,

As Basha mentioned:

table.tableType = COLUMNSTORE;

In

table.columns  - you have missed semicolons in defining column fields, it should be as:

{name = "Col1"; sqlType = NVARCHAR; nullable = false; length = 15; comment = "dummy comment";},

Similarly, correct Col2, Col3 and Col4 lines also

Rest is fine.

For further details, you can refer to HANA Developer Guide:

http://help.sap.com/hana/SAP_HANA_Developer_Guide_en.pdf

Regards,

Vivek

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Basha  and vivek,

Thank you very much .

I got it now.

regards.

hari

Former Member
0 Kudos

Hi Hari,

Please check the below syntax.I think it should be COLUMNSTORE.

table.tableType = COLUMSTORE;

Thanks

Basha