Skip to content

Commit

Permalink
Update WritetimeTTL.java for issue 218
Browse files Browse the repository at this point in the history
Fix for Jira datastax#218
writetime and TTL are not preserved if columns are not explicitly configured in cdm.properties
  • Loading branch information
icaredb authored Nov 15, 2023
1 parent 6523d67 commit 58ce2d2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/com/datastax/cdm/feature/WritetimeTTL.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ public boolean loadProperties(IPropertyHelper propertyHelper) {

isValid = validateProperties();
isEnabled = isValid &&
(this.autoWritetimeNames || this.autoTTLNames
((null != ttlNames && !ttlNames.isEmpty())
|| (null != writetimeNames && !writetimeNames.isEmpty())
|| this.autoWritetimeNames || this.autoTTLNames
|| customWritetime > 0);

isLoaded = true;
Expand Down

0 comments on commit 58ce2d2

Please sign in to comment.