Open vkarpov15 opened 1 week ago
I created a table with the following command:
{ "createTable": { "name": "reviews", "definition": { "primaryKey": "_id", "columns": { "_id": { "type": "text" }, "rating": { "type": "int" }, "text": { "type": "text" }, "userId": { "type": "text" }, "vehicleId": { "type": "text" }, "createdAt": { "type": "decimal" }, "updatedAt": { "type": "decimal" } } } } }
Table looks like the following in cqlsh:
Running addIndex on vehicleId property as follows:
addIndex
vehicleId
{ "addIndex": { "column": "vehicleId", "indexName": "vehicleId" } }
Gives me an error:
Error: Command "addIndex" failed with the following errors: [{"message":"Undefined column name vehicleid in table demo.reviews","errorCode":"INVALID_QUERY"}]
Likely need to double quote column names in addIndex?
You can see an example failure here: https://github.com/stargate/stargate-mongoose-sample-apps/actions/runs/10944064429/job/30385029328?pr=397
I created a table with the following command:
Table looks like the following in cqlsh:
Running
addIndex
onvehicleId
property as follows:Gives me an error:
Likely need to double quote column names in
addIndex
?