com.datastax.driver.core.exceptions.InvalidQueryException: Unknown type .map
at com.datastax.driver.core.exceptions.InvalidQueryException.copy(InvalidQueryException.java:35)
at com.datastax.driver.core.DefaultResultSetFuture.extractCauseFromExecutionException(DefaultResultSetFuture.java:291)
at com.datastax.driver.core.DefaultResultSetFuture.getUninterruptibly(DefaultResultSetFuture.java:205)
at com.datastax.driver.core.AbstractSession.execute(AbstractSession.java:52)
at com.datastax.driver.mapping.schemasync.SchemaSync.sync(SchemaSync.java:51)
Below block of code in SchemaSync class fails when a field of type list in an entity is changed to map datatype : map<text,text>
Error :
com.datastax.driver.core.exceptions.InvalidQueryException: Unknown type.map
at com.datastax.driver.core.exceptions.InvalidQueryException.copy(InvalidQueryException.java:35)
at com.datastax.driver.core.DefaultResultSetFuture.extractCauseFromExecutionException(DefaultResultSetFuture.java:291)
at com.datastax.driver.core.DefaultResultSetFuture.getUninterruptibly(DefaultResultSetFuture.java:205)
at com.datastax.driver.core.AbstractSession.execute(AbstractSession.java:52)
at com.datastax.driver.mapping.schemasync.SchemaSync.sync(SchemaSync.java:51)