This is an automated email from the ASF dual-hosted git repository.
starocean999 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 3d1ef722f66 [Chore](nereids) remove ShowWarningStmt (#54589)
3d1ef722f66 is described below
commit 3d1ef722f669121352a84e5c1606e1f094677031
Author: yaoxiao <[email protected]>
AuthorDate: Tue Aug 12 10:58:12 2025 +0800
[Chore](nereids) remove ShowWarningStmt (#54589)
---
fe/fe-core/src/main/cup/sql_parser.cup | 8 -----
.../org/apache/doris/analysis/ShowWarningStmt.java | 41 ----------------------
2 files changed, 49 deletions(-)
diff --git a/fe/fe-core/src/main/cup/sql_parser.cup
b/fe/fe-core/src/main/cup/sql_parser.cup
index eba238bd8e9..73be3cfb325 100644
--- a/fe/fe-core/src/main/cup/sql_parser.cup
+++ b/fe/fe-core/src/main/cup/sql_parser.cup
@@ -3431,14 +3431,6 @@ show_param ::=
{:
RESULT = new ShowEnginesStmt();
:}
- | KW_WARNINGS limit_clause
- {:
- RESULT = new ShowWarningStmt();
- :}
- | KW_ERRORS limit_clause
- {:
- RESULT = new ShowWarningStmt();
- :}
/* Show alter table statement: used to show process of alter table
statement */
| KW_ALTER KW_TABLE opt_alter_type:type opt_db:db opt_wild_where
order_by_clause:orderByClause limit_clause:limitClause
{:
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/analysis/ShowWarningStmt.java
b/fe/fe-core/src/main/java/org/apache/doris/analysis/ShowWarningStmt.java
deleted file mode 100644
index 633bb406530..00000000000
--- a/fe/fe-core/src/main/java/org/apache/doris/analysis/ShowWarningStmt.java
+++ /dev/null
@@ -1,41 +0,0 @@
-// 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.qe.ShowResultSetMetaData;
-
-// Show Warning stmt
-public class ShowWarningStmt extends ShowStmt implements NotFallbackInParser {
- private static final ShowResultSetMetaData META_DATA =
- ShowResultSetMetaData.builder()
- .addColumn(new Column("Level",
ScalarType.createVarchar(20)))
- .addColumn(new Column("Code",
ScalarType.createVarchar(20)))
- .addColumn(new Column("Message",
ScalarType.createVarchar(20)))
- .build();
-
- @Override
- public void analyze() {
- }
-
- @Override
- public ShowResultSetMetaData getMetaData() {
- return META_DATA;
- }
-}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]