Skip to content

Commit 81e4165

Browse files
authored
Explain what to do when unsupported TTL/writetime for collections is (#56)
enabled for table.
1 parent 39d3bcb commit 81e4165

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/com/scylladb/migrator/readers/Cassandra.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ object Cassandra {
2828
preserveTimesRequest: Boolean): Either[Throwable, CopyType] =
2929
if (tableDef.columnTypes.exists(_.isCollection) && preserveTimesRequest)
3030
Left(
31-
new Exception("TTL/Writetime preservation is unsupported for tables with collection types"))
31+
new Exception("TTL/Writetime preservation is unsupported for tables with collection types. Please check in your config the option 'preserveTimestamps' and set it to false to continue."))
3232
else if (preserveTimesRequest && tableDef.regularColumns.nonEmpty)
3333
Right(CopyType.WithTimestampPreservation)
3434
else if (preserveTimesRequest && tableDef.regularColumns.isEmpty) {

0 commit comments

Comments
 (0)