seawinde commented on code in PR #49961: URL: https://github.com/apache/doris/pull/49961#discussion_r2038874072
########## fe/fe-core/src/main/java/org/apache/doris/analysis/TableName.java: ########## @@ -189,6 +205,18 @@ public String toSql() { return stringBuilder.toString(); } + /** + * if this.field is empty, we think they are like,otherwise they must equal to other's + * + * @param other + * @return + */ + public boolean like(TableName other) { + return (StringUtils.isEmpty(tbl) || tbl.equals(other.tbl)) Review Comment: what would happen when other.tbl is null -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org