Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Enhancement] Optimize logic of materialized view when base table is …
…dropped (#8613) Optimize logic of materialized view when base table is dropped
- Loading branch information
1 parent
4ad47b9
commit 298823c
Showing
5 changed files
with
91 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
fe/fe-core/src/main/java/com/starrocks/sql/common/DmlException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// This file is licensed under the Elastic License 2.0. Copyright 2021-present, StarRocks Limited. | ||
package com.starrocks.sql.common; | ||
|
||
public class DmlException extends RuntimeException { | ||
public DmlException(String message) { | ||
super(message); | ||
} | ||
|
||
@Override | ||
public String getMessage() { | ||
String message = super.getMessage(); | ||
if (message == null && getCause() != null) { | ||
message = getCause().getMessage(); | ||
} | ||
return message; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters