nextdreamblue commented on code in PR #13067: URL: https://github.com/apache/doris/pull/13067#discussion_r996319079
########## fe/fe-core/src/main/java/org/apache/doris/analysis/ShowDroppedStmt.java: ########## @@ -0,0 +1,154 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package org.apache.doris.analysis; + +import org.apache.doris.catalog.Column; +import org.apache.doris.catalog.ScalarType; +import org.apache.doris.common.AnalysisException; +import org.apache.doris.common.CaseSensibility; +import org.apache.doris.common.PatternMatcher; +import org.apache.doris.common.UserException; +import org.apache.doris.qe.ShowResultSetMetaData; + +import com.google.common.base.Strings; +import com.google.common.collect.ImmutableList; + +import java.util.function.Predicate; + +public class ShowDroppedStmt extends ShowStmt { + public static final ImmutableList<String> TITLE_NAMES = new ImmutableList.Builder<String>() + .add("Type").add("Name").add("DbId").add("TableId").add("PartitionId").add("DropTime") Review Comment: 这个地方主要想让用户可以在一个查询中就能获取当前id的所属父id是谁,方便用户去区分同名资源。比如说两个不同的database,每个database都删除过表test,通过上边的命令,就能看到两个不同的表test属于哪个database。否则很难通过一个过期的(被drop的)id去知道这个表曾经的信息。 -- 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