Skip to content

Commit

Permalink
Update ConfigMTree.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Caideyipi committed Nov 29, 2024
1 parent d250c56 commit ce8a2f8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,8 @@ public void setTableProperties(
}
} else if (k.equals(TsTable.TTL_PROPERTY)) {
table.addProp(TsTable.TTL_DEFAULT, Boolean.TRUE.toString());
if (databaseNode.getDatabaseSchema().isSetTTL()) {
if (databaseNode.getDatabaseSchema().isSetTTL()
&& databaseNode.getDatabaseSchema().getTTL() != Long.MAX_VALUE) {
table.addProp(k, String.valueOf(databaseNode.getDatabaseSchema().getTTL()));
} else {
table.removeProp(k);
Expand Down

0 comments on commit ce8a2f8

Please sign in to comment.