in core/lib/sqlparse/models.py [0:0]
def is_myrocks_ttl_table(self):
if not self.engine:
return False
if self.engine.upper() == "ROCKSDB":
if self.comment:
# partition level ttl
if re.search(r"\S+_ttl_duration=[0-9]+;", self.comment):
return True
# table level ttl
elif re.search(r"ttl_duration=[0-9]+;", self.comment):
return True
else:
return False
else:
return False
else:
return False