I am executing the below-given query but it throwing an error. I am new to clickhouse can you please assist me with how to fix it?
CREATE TABLE rapidTax.mutualFund (
`id` varchar(255),
`mutualFundId` varchar(255) DEFAULT NULL,
`date` date DEFAULT NULL,
`nav` float DEFAULT NULL,
INDEX mutualFundIdIndex mutualFundId,
INDEX dateIndex date
) ENGINE = MergeTree(),
PRIMARY KEY id
Throwing Error:
Code: 62. DB::Exception: Syntax error: failed at position 247 ('dateIndex') (line 8, col 11): dateIndex date ) ENGINE = MergeTree(), PRIMARY KEY id. Expected one of: Comma, Arrow, token. (SYNTAX_ERROR) (version 21.9.4.35 (official build))