Support setting TTL in metastore