Sto creando un'API che funzionerà su mongo o cassandra, per questo motivo sto usando '_id' come nome di colonna.Nome colonna valido Cassandra
Questo dovrebbe essere un nome valido Secondo la documentazione:
Keyspace, column, and table names created using CQL can only contain alphanumeric and underscore characters. User-defined data type names and field names, user-defined function names, and user-defined aggregate names created using CQL can only contain alphanumeric and underscore characters. If you enter names for these objects using anything other than alphanumeric characters or underscores, Cassandra will issue an invalid syntax message and fail to create the object.
Tuttavia, quando si esegue questa dichiarazione:
CREATE TABLE users(_id: bigint, entires: map<timestamp, text>, PRIMARY KEY(_id));
torno il seguente errore:
Invalid syntax at line 1, char 20
È possibile utilizzare caratteri di sottolineatura nei nomi delle colonne?
anche se dovrebbe essere illegale come da documenti, in realtà funziona. per favore vedi la mia risposta – kostja