This is an automated email from the ASF dual-hosted git repository. morningman pushed a commit to branch branch-1.2-lts in repository https://gitbox.apache.org/repos/asf/doris.git
commit 0c6fd47c9231e6db8ac17ac668e37d0cbc6b9270 Author: Xujian Duan <[email protected]> AuthorDate: Sat Feb 4 22:51:19 2023 +0800 [Enhancement](Stmt)ShowPartitionsStmt support forward to master #16359 Co-authored-by: duanxujian <[email protected]> --- .../main/java/org/apache/doris/analysis/ShowPartitionsStmt.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/ShowPartitionsStmt.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/ShowPartitionsStmt.java index 1e79ef8f54..6114bc83a0 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/ShowPartitionsStmt.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/ShowPartitionsStmt.java @@ -271,4 +271,13 @@ public class ShowPartitionsStmt extends ShowStmt { return toSql(); } + @Override + public RedirectStatus getRedirectStatus() { + if (ConnectContext.get().getSessionVariable().getForwardToMaster()) { + return RedirectStatus.FORWARD_NO_SYNC; + } else { + return RedirectStatus.NO_FORWARD; + } + } + } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
